From 9c0d2f036ddb4a427b640a8b874b6b5f6c0eb827 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Fri, 6 Feb 2015 02:59:44 +0100 Subject: [PATCH] show batadv tq --- .../gluon/status-page/www/js/lib/gui/neighbourlist.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gluon/gluon-status-page/files/lib/gluon/status-page/www/js/lib/gui/neighbourlist.js b/gluon/gluon-status-page/files/lib/gluon/status-page/www/js/lib/gui/neighbourlist.js index 0110094..642b648 100644 --- a/gluon/gluon-status-page/files/lib/gluon/status-page/www/js/lib/gui/neighbourlist.js +++ b/gluon/gluon-status-page/files/lib/gluon/status-page/www/js/lib/gui/neighbourlist.js @@ -25,6 +25,9 @@ define([ "lib/helper" var hostname = document.createElement("h3"); info.appendChild(hostname); + var batadv = document.createElement("p"); + info.appendChild(batadv); + wrapper.appendChild(info); var infoSet = false; @@ -47,6 +50,12 @@ define([ "lib/helper" chart(signal); } + if ("batadv" in d) { + batadv.textContent = "TQ: " + d.batadv.tq + " (" + d.batadv.lastseen + "s)"; + } else { + batadv.textContent = ""; + } + if (!infoSet) { while (hostname.firstChild) hostname.removeChild(hostname.firstChild);