From 8d4cc879941bd6c2bb0a23cdf50c2d660c0e9c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Sat, 5 Mar 2016 12:38:43 +0100 Subject: [PATCH] main: unseen nodes are online --- lib/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 5fd96d6..db37039 100644 --- a/lib/main.js +++ b/lib/main.js @@ -61,8 +61,13 @@ function (moment, Router, L, GUI, numeral) { var graph = dataGraph.batadv graph.nodes.forEach( function (d) { - if (d.node_id in graphnodes) + if (d.node_id in graphnodes) { d.node = graphnodes[d.node_id] + if (d.unseen) { + d.node.flags.online = true + d.node.flags.unseen = true + } + } }) graph.links.forEach( function (d) {