Skip traceroute edges without SNR.
This commit is contained in:
parent
f1103748e6
commit
42d25add06
1 changed files with 3 additions and 0 deletions
|
|
@ -628,6 +628,9 @@ app.get('/api/v1/traceroutes', async (req, res) => {
|
||||||
const hopTo = pathNodes[i + 1];
|
const hopTo = pathNodes[i + 1];
|
||||||
const snr = typeof (pathSnrs && pathSnrs[i]) === 'number' ? pathSnrs[i] : null;
|
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 key = edgeKey(hopFrom, hopTo);
|
||||||
const existing = edges.get(key);
|
const existing = edges.get(key);
|
||||||
if (!existing) {
|
if (!existing) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue