diff options
| author | tv <tv@krebsco.de> | 2026-10-30 21:44:52 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-30 21:44:52 +0100 |
| commit | 114c9cb6f45abedb9b90ef6c9194570ff84fbda2 (patch) | |
| tree | 4b7e2d03c8b1227c15211871d2d6e5a5eb91249c /src/api | |
| parent | e29720d7602d6c186dcd8bed0ec08490ae3b9b58 (diff) | |
dashboard: show dormant age only once
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/dashboard/dashboard.html | 5 |
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), |
