aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/dashboard/dashboard.html
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 18:29:01 +0100
committertv <tv@krebsco.de>2026-10-30 18:29:01 +0100
commitc33ba31c0d27c3f2531fe9f5ac5dbe55326c8349 (patch)
tree36411002a2a66b0c83893923736bf387255409aa /src/api/dashboard/dashboard.html
parente3b386c2aa9970f2f999f07ac43b7eb8fe319d8d (diff)
links answers connection type
Diffstat (limited to 'src/api/dashboard/dashboard.html')
-rw-r--r--src/api/dashboard/dashboard.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html
index 9a17d6b..5bed5fe 100644
--- a/src/api/dashboard/dashboard.html
+++ b/src/api/dashboard/dashboard.html
@@ -366,13 +366,13 @@ function renderGraph() {
if (link.dormant) {
drawn.setAttribute("stroke-dasharray", line.used ? "1 5" : "1 3");
drawn.setAttribute("stroke-linecap", "round");
- } else if (line.used && link.relayed) {
+ } else if (line.used ? link.relayed : line.relayed) {
drawn.setAttribute("stroke-dasharray", "7 4");
}
const title = svg("title");
title.textContent = name(a) + " – " + name(b) +
(line.transport ? " via " + line.transport : "") + (line.used ? " (in use)" : "") +
- (line.used && link.relayed ? ", relayed" : "") + (link.dormant ? ", dormant" : "") +
+ ((line.used ? link.relayed : line.relayed) ? ", relayed" : "") + (link.dormant ? ", dormant" : "") +
(typeof line.rttMs === "number" ? ", " + line.rttMs.toFixed(1) + " ms" : "") +
", measured " + age(secsAgo + elapsed()) + " ago";
drawn.append(title);