From 114c9cb6f45abedb9b90ef6c9194570ff84fbda2 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Oct 2026 21:44:52 +0100 Subject: dashboard: show dormant age only once --- src/api/dashboard/dashboard.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/api') 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), -- cgit v1.3.1