From 42d25add061b46494e5642905825a795daf18d10 Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Sun, 10 Aug 2025 17:37:29 +0200 Subject: [PATCH] Skip traceroute edges without SNR. --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index c37fc53..57e24d7 100644 --- a/src/index.js +++ b/src/index.js @@ -628,6 +628,9 @@ app.get('/api/v1/traceroutes', async (req, res) => { const hopTo = pathNodes[i + 1]; const snr = typeof (pathSnrs && pathSnrs[i]) === 'number' ? pathSnrs[i] : null; + // Skip edges without SNR data + if (snr === null) continue; + const key = edgeKey(hopFrom, hopTo); const existing = edges.get(key); if (!existing) {