main: add a command line option for dumping remote node data

Run for a given number of seconds and dump all found remote hosts/nodes as
JSON data

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2021-07-07 11:37:50 +02:00
parent 07a2f767e5
commit ab4d89e742
4 changed files with 82 additions and 26 deletions

View File

@@ -526,6 +526,9 @@ usteer_send_update_timer(struct uloop_timeout *t)
struct usteer_node *node;
void *c;
if (avl_is_empty(&local_nodes) && !host_info_blob)
return;
usteer_update_time();
uloop_timeout_set(t, config.remote_update_interval);