diff --git a/lib/meshstats.js b/lib/meshstats.js index e9b9845..96d19fd 100644 --- a/lib/meshstats.js +++ b/lib/meshstats.js @@ -15,7 +15,9 @@ define(function () { return d.statistics.gateway }).concat(d.nodes.all.filter( function (d) { return d.flags.gateway - })))).map(one)) + })))).map(function(d) { + return (typeof d === "string") ? 1 : 0 + })) var nodetext = [{ count: totalOnlineNodes, label: "online" }, { count: totalNewNodes, label: "neu" },