From c33ba31c0d27c3f2531fe9f5ac5dbe55326c8349 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Oct 2026 18:29:01 +0100 Subject: links answers connection type --- src/api/dashboard/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/dashboard/dashboard.html') 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); -- cgit v1.3.1