Lets send only nodes and edge info when n->last_state_change > 0 and this information is no older than 1 hour
This commit is contained in:
parent
781dac00d5
commit
bdcbf10428
1 changed files with 1 additions and 1 deletions
|
@ -744,7 +744,7 @@ static void send_everything(connection_t *c) {
|
|||
}
|
||||
|
||||
for splay_each(node_t, n, node_tree) {
|
||||
if (!n->status.reachable)
|
||||
if ((n->last_state_change > 0) && (now.tv_sec - n->last_state_change >= 3600))
|
||||
continue;
|
||||
|
||||
for splay_each(subnet_t, s, n->subnet_tree)
|
||||
|
|
Loading…
Reference in a new issue