aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/nms.gathering.org/js/nms-map-handlers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/nms.gathering.org/js/nms-map-handlers.js b/web/nms.gathering.org/js/nms-map-handlers.js
index ddb50a1..eaa62fd 100644
--- a/web/nms.gathering.org/js/nms-map-handlers.js
+++ b/web/nms.gathering.org/js/nms-map-handlers.js
@@ -163,7 +163,8 @@ function trafficUpdater()
speed += (parseInt(t["ifhcinoctets"]) -parseInt(n["ifhcinoctets"])) / (parseInt(t["time"] - n["time"]));
}
}
- setSwitchColor(sw,colorFromSpeed(speed));
+ if(!isNaN(speed))
+ setSwitchColor(sw,colorFromSpeed(speed));
}
}