From 39bc55695f81ed4553f342cc8adf507e95badc6b Mon Sep 17 00:00:00 2001 From: "Remy D. Farley" Date: Wed, 19 Jun 2024 08:58:30 +0000 Subject: luci-proto-yggdrasil: show peer latency Signed-off-by: Remy D. Farley --- .../htdocs/luci-static/resources/protocol/yggdrasil.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/luci-proto-yggdrasil/htdocs') diff --git a/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js b/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js index d02095beb4..f216f8b16f 100644 --- a/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js +++ b/protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js @@ -96,6 +96,10 @@ function updateActivePeers(ifname) { cell.className = "td" cell.textContent = '%t'.format(peer.uptime); + cell = row.insertCell(-1) + cell.className = "td" + cell.textContent = '%.2f ms'.format(peer.latency_ms / 10**6); + cell = row.insertCell(-1) cell.className = "td" cell.textContent = '%.2mB'.format(peer.bytes_recvd); @@ -136,6 +140,7 @@ var cbiActivePeers = form.DummyValue.extend({ E('th', {'class': 'th'}, _('Dir')), E('th', {'class': 'th'}, _('IP Address')), E('th', {'class': 'th'}, _('Uptime')), + E('th', {'class': 'th'}, _('Latency')), E('th', {'class': 'th'}, _('RX')), E('th', {'class': 'th'}, _('TX')), E('th', {'class': 'th'}, _('Priority')), -- cgit v1.2.3