From 8758c04a29a57fac33ce4eee35801c74f86937d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Thu, 25 Feb 2016 21:00:05 +0100 Subject: [PATCH] infobox/node: always show lastseen also change loadavg name --- lib/infobox/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index 508bb26..90b00d8 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -39,7 +39,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"], function showStatus(d) { return function (el) { el.classList.add(d.flags.online ? "online" : "offline") - el.textContent = d.flags.online ? "online" : "offline, " + d.lastseen.fromNow(true) + " " + d.lastseen.format("(DD.MM.YYYY, H:mm:ss)") + el.textContent = (d.flags.online ? "online " : "offline, " + d.lastseen.fromNow(true)) + " (Stand " + d.lastseen.format("DD.MM.YYYY, H:mm:ss)") } } @@ -159,7 +159,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"], return span } - function showLOAD(d) { + function showLoad(d) { if (!("loadavg" in d.statistics)) return undefined @@ -271,7 +271,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"], attributeEntry(attributes, "Site", showSite(d, config)) attributeEntry(attributes, "Uptime", showUptime(d)) attributeEntry(attributes, "Teil des Netzes", showFirstseen(d)) - attributeEntry(attributes, "Load - avg", showLOAD(d)) + attributeEntry(attributes, "Systemlast", showLoad(d)) attributeEntry(attributes, "Arbeitsspeicher", showRAM(d)) attributeEntry(attributes, "IP Adressen", showIPs(d)) attributeEntry(attributes, "Webseite", showPages(d))