Merge pull request #13 from yayachiken/new-stats-patch

stats: Fix inaccuracies if lat or long is missing
This commit is contained in:
PetaByteBoy // Milan Pässler 2016-03-24 13:05:12 +01:00
commit 1f07f50530

View File

@ -130,7 +130,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "verc
var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"])
var hwDict = count(nodes, ["nodeinfo", "hardware", "model"])
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) {