proportions: correct use of online vs all nodes
This commit is contained in:
parent
8497a5f833
commit
2a78af4208
@ -146,7 +146,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
|
|||||||
return d ? "ja" : "nein"
|
return d ? "ja" : "nein"
|
||||||
})
|
})
|
||||||
|
|
||||||
var gwNodesDict = count(nodes, ["statistics", "gateway"], function (d) {
|
var gwNodesDict = count(onlineNodes, ["statistics", "gateway"], function (d) {
|
||||||
if (d === null)
|
if (d === null)
|
||||||
return null
|
return null
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
|
|||||||
return d
|
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
|
var rt = d
|
||||||
if (config.siteNames)
|
if (config.siteNames)
|
||||||
config.siteNames.forEach( function (t) {
|
config.siteNames.forEach( function (t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user