mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
luci-proto-yggdrasil: show peer latency
Signed-off-by: Remy D. Farley <one-d-wide@protonmail.com>
This commit is contained in:
committed by
Paul Donald
parent
9d049d755a
commit
39bc55695f
@@ -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')),
|
||||
|
||||
Reference in New Issue
Block a user