From ccd4b1652b08e50b9c7e5b109ab105879112edf4 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 26 Mar 2015 13:19:11 +0100 Subject: [PATCH] nodelist: show only uptime and clientcount --- lib/nodelist.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/nodelist.js b/lib/nodelist.js index bd37a60..184f113 100644 --- a/lib/nodelist.js +++ b/lib/nodelist.js @@ -26,11 +26,11 @@ define(function () { tr.appendChild(th1) var th2 = document.createElement("th") - th2.textContent = "Firmware" + th2.textContent = "Uptime" tr.appendChild(th2) var th3 = document.createElement("th") - th3.textContent = "Uptime" + th3.textContent = "Clients" tr.appendChild(th3) thead.appendChild(tr) @@ -60,11 +60,11 @@ define(function () { } var td2 = document.createElement("td") - td2.textContent = "software" in d.nodeinfo ? d.nodeinfo.software.firmware.release : "" + showUptime(td2, d) row.appendChild(td2) var td3 = document.createElement("td") - showUptime(td3, d) + td3.textContent = "clients" in d.statistics ? d.statistics.clients : "" row.appendChild(td3) tbody.appendChild(row)