main: unseen nodes are online

This commit is contained in:
Milan Pässler 2016-03-05 12:38:43 +01:00
parent f7bc41dcec
commit 8d4cc87994

View file

@ -61,8 +61,13 @@ function (moment, Router, L, GUI, numeral) {
var graph = dataGraph.batadv var graph = dataGraph.batadv
graph.nodes.forEach( function (d) { graph.nodes.forEach( function (d) {
if (d.node_id in graphnodes) if (d.node_id in graphnodes) {
d.node = graphnodes[d.node_id] d.node = graphnodes[d.node_id]
if (d.unseen) {
d.node.flags.online = true
d.node.flags.unseen = true
}
}
}) })
graph.links.forEach( function (d) { graph.links.forEach( function (d) {