From 2a78af420845248dd2f7873943b5c7b925f07c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Fri, 22 Apr 2016 01:05:32 +0200 Subject: [PATCH] proportions: correct use of online vs all nodes --- lib/proportions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/proportions.js b/lib/proportions.js index 0805131..f1bbb7d 100644 --- a/lib/proportions.js +++ b/lib/proportions.js @@ -146,7 +146,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc return d ? "ja" : "nein" }) - var gwNodesDict = count(nodes, ["statistics", "gateway"], function (d) { + var gwNodesDict = count(onlineNodes, ["statistics", "gateway"], function (d) { if (d === null) return null @@ -166,7 +166,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc return d }) - var siteDict = count(onlineNodes, ["nodeinfo", "system", "site_code"], function (d) { + var siteDict = count(nodes, ["nodeinfo", "system", "site_code"], function (d) { var rt = d if (config.siteNames) config.siteNames.forEach( function (t) {