Browse Source

remove direct node timeout, since you can use the map filters now

pull/457/head
Jamon Terrell 1 year ago
parent
commit
65f88d7c55
  1. 3
      src/pages/Map/index.tsx

3
src/pages/Map/index.tsx

@ -47,8 +47,6 @@ const getSignalColor = (snr: number, rssi?: number) => {
return LINE_BAD_COLOR;
};
const DIRECT_NODE_TIMEOUT = 60 * 20; // 60 seconds * ? minutes
type NodePosition = {
latitude: number;
longitude: number;
@ -120,7 +118,6 @@ const generateDirectLines = (
for (const node of nodes) {
if (!node.position || node.hopsAway !== 0) continue;
if (Date.now() / 1000 - node.lastHeard > DIRECT_NODE_TIMEOUT) continue;
const start = convertToLatLng(node.position);
const end = convertToLatLng(myNode.position);
features.push({

Loading…
Cancel
Save