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:
thorkill 2015-11-29 11:52:14 +01:00
parent 781dac00d5
commit bdcbf10428

View file

@ -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)