From bdcbf1042860fa66e45a075e4790997e3cd5bd77 Mon Sep 17 00:00:00 2001 From: thorkill Date: Sun, 29 Nov 2015 11:52:14 +0100 Subject: [PATCH] Lets send only nodes and edge info when n->last_state_change > 0 and this information is no older than 1 hour --- src/protocol_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 3c2eea85..21e94f5c 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -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)