diff --git a/meshview/templates/packet.html b/meshview/templates/packet.html index 42e3122..0be014a 100644 --- a/meshview/templates/packet.html +++ b/meshview/templates/packet.html @@ -408,6 +408,11 @@ seenSorted.forEach(s => { hopGroups[hopValue].push(s); }); +function formatHopDisplay(hopKey, hopStart){ + const startVal = hopStart ?? "—"; + return `${hopKey}/${startVal}`; +} + /* --------------------------------------------- Render grouped gateway table + map markers ----------------------------------------------*/ @@ -424,6 +429,7 @@ seenTableBody.innerHTML = Object.keys(hopGroups) const node = nodeLookup[s.node_id]; const label = node?.long_name || s.node_id; + const hopDisplay = formatHopDisplay(hopKey, s.hop_start); const timeStr = s.import_time_us ? new Date(s.import_time_us/1000).toLocaleTimeString() : "—"; @@ -482,7 +488,7 @@ seenTableBody.innerHTML = Object.keys(hopGroups) RSSI: ${s.rx_rssi ?? "—"}
SNR: ${s.rx_snr ?? "—"}

- Hops: ${hopKey} + Hops: ${hopDisplay} `); @@ -493,7 +499,7 @@ seenTableBody.innerHTML = Object.keys(hopGroups) ${label} ${s.rx_rssi ?? "—"} ${s.rx_snr ?? "—"} - ${hopKey} + ${hopDisplay} ${s.channel ?? "—"} ${timeStr}