From f3e530f42e350f17f42cf3f8f0f310f433effef9 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Thu, 30 Jun 2016 21:37:03 +0200 Subject: front: Fix basic Safari-stuff and misc oplog-issues .... Oplog: Don't send empty oplog entries. When viewing a switch, don't include oplog entries that have a blank system association. --- web/js/nms-map-handlers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/js/nms-map-handlers.js') diff --git a/web/js/nms-map-handlers.js b/web/js/nms-map-handlers.js index 4cf2fea..b88b858 100644 --- a/web/js/nms-map-handlers.js +++ b/web/js/nms-map-handlers.js @@ -332,7 +332,7 @@ function tempInfo(sw) ret.score = 0; ret.data[0].value = "N/A"; if (testTree(nmsData,['switchstate','switches',sw,'temp'])) { - let temp = nmsData.switchstate.switches[sw].temp; + var temp = nmsData.switchstate.switches[sw].temp; if (temp == undefined) { ret.data[0].value = "N/A"; } else { @@ -400,7 +400,7 @@ function pingInfo(sw) ret.score = 250; ret.why = "No IPv6 ping reply"; } else if (v4 == undefined) { - ret.score = 249; + ret.score = 800; ret.why = "No IPv4 ping reply"; } -- cgit v1.2.3