From cb716e297d21469a0bdbc863817d038e36868358 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sat, 16 Jun 2012 05:04:21 +0200 Subject: [PATCH] don't count offline nodes --- html/force.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/force.js b/html/force.js index 5ef9368..7c29345 100644 --- a/html/force.js +++ b/html/force.js @@ -344,13 +344,13 @@ function reload() { updated_at.text(d3.time.format("%X")(new Date())) var nNodes = data.nodes.filter(function(d) { - return !d.flags.client + return !d.flags.client && d.flags.online }).length, nGateways = data.nodes.filter(function(d) { - return d.flags.gateway + return d.flags.gateway && d.flags.online }).length, nClients = data.nodes.filter(function(d) { - return d.flags.client + return d.flags.client && d.flags.online }).length d3.select("#nodecount")