Merge pull request #13 from yayachiken/new-stats-patch
stats: Fix inaccuracies if lat or long is missing
This commit is contained in:
commit
1f07f50530
|
@ -130,7 +130,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
|
||||||
var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"])
|
var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"])
|
||||||
var hwDict = count(nodes, ["nodeinfo", "hardware", "model"])
|
var hwDict = count(nodes, ["nodeinfo", "hardware", "model"])
|
||||||
var geoDict = count(nodes, ["nodeinfo", "location"], function (d) {
|
var geoDict = count(nodes, ["nodeinfo", "location"], function (d) {
|
||||||
return d ? "ja" : "nein"
|
return d && d.longitude && d.latitude ? "ja" : "nein"
|
||||||
})
|
})
|
||||||
|
|
||||||
var autoDict = count(nodes, ["nodeinfo", "software", "autoupdater"], function (d) {
|
var autoDict = count(nodes, ["nodeinfo", "software", "autoupdater"], function (d) {
|
||||||
|
|
Loading…
Reference in a new issue