aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 21:44:52 +0100
committertv <tv@krebsco.de>2026-10-30 21:44:52 +0100
commit55541922a6f966f5b870d8944a6110972cac8e6b (patch)
tree5022dd723fc5131b073ab2347f2618d888c5b2af /src
parente5a172aef883f9a242796344a3bc950ee13b3a4f (diff)
dashboard: show dormant age only once
Diffstat (limited to 'src')
-rw-r--r--src/api/dashboard/dashboard.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html
index 9833426..b3f8986 100644
--- a/src/api/dashboard/dashboard.html
+++ b/src/api/dashboard/dashboard.html
@@ -240,8 +240,9 @@ function renderPeers() {
: "";
const row = el("tr", { "data-peer": id, class: id === focused ? "focused" : "" },
el("td", { title: id }, peer.alias || el("span", { class: "id" }, short(id))),
- el("td", { class: peer.status }, peer.status +
- (peer.status === "dormant" ? " " + age(aged("dormantForSecs", peer.dormantForSecs)) : "")),
+ // How long dormant is about how long unseen ("seen"): in the tooltip only.
+ el("td", { class: peer.status, title: peer.status === "dormant"
+ ? "dormant for " + age(aged("dormantForSecs", peer.dormantForSecs)) : "" }, peer.status),
el("td", {}, age(aged("lastSeenSecsAgo", peer.lastSeenSecsAgo))),
el("td", { class: "id" }, via),
el("td", {}, rtt),