Skip to content

Commit

Permalink
luci-proto-yggdrasil: show peer latency
Browse files Browse the repository at this point in the history
Signed-off-by: Remy D. Farley <[email protected]>
  • Loading branch information
one-d-wide authored and systemcrash committed Jun 30, 2024
1 parent 9d049d7 commit 39bc556
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/luci-proto-yggdrasil/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=Support for Yggdrasil Network
LUCI_DEPENDS:=+yggdrasil
LUCI_PKGARCH:=all
PKG_VERSION:=1.1.0
PKG_VERSION:=1.1.1
PKG_MAINTAINER:=William Fleurant <[email protected]>

include ../../luci.mk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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')),
Expand Down

0 comments on commit 39bc556

Please sign in to comment.