infobox/node: always show lastseen
also change loadavg name
This commit is contained in:
parent
cec0775423
commit
8758c04a29
|
@ -39,7 +39,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
|
||||||
function showStatus(d) {
|
function showStatus(d) {
|
||||||
return function (el) {
|
return function (el) {
|
||||||
el.classList.add(d.flags.online ? "online" : "offline")
|
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
|
return span
|
||||||
}
|
}
|
||||||
|
|
||||||
function showLOAD(d) {
|
function showLoad(d) {
|
||||||
if (!("loadavg" in d.statistics))
|
if (!("loadavg" in d.statistics))
|
||||||
return undefined
|
return undefined
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
|
||||||
attributeEntry(attributes, "Site", showSite(d, config))
|
attributeEntry(attributes, "Site", showSite(d, config))
|
||||||
attributeEntry(attributes, "Uptime", showUptime(d))
|
attributeEntry(attributes, "Uptime", showUptime(d))
|
||||||
attributeEntry(attributes, "Teil des Netzes", showFirstseen(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, "Arbeitsspeicher", showRAM(d))
|
||||||
attributeEntry(attributes, "IP Adressen", showIPs(d))
|
attributeEntry(attributes, "IP Adressen", showIPs(d))
|
||||||
attributeEntry(attributes, "Webseite", showPages(d))
|
attributeEntry(attributes, "Webseite", showPages(d))
|
||||||
|
|
Loading…
Reference in a new issue