show batadv tq

This commit is contained in:
Nils Schneider 2015-02-06 02:59:44 +01:00
parent e5f0aca58e
commit 9c0d2f036d
1 changed files with 9 additions and 0 deletions

View File

@ -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);