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) {