mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-08-07 17:32:50 +02:00
Merge pull request #25 from Roslund/traceroutes
Skip traceroute edges without SNR.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user