mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
Fix chart on node.html.
This commit is contained in:
@@ -928,8 +928,10 @@ async function loadNeighborTimeSeries() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Time-series structure:
|
||||
// neighborHistory = { node_id: { name, snr:[...], times:[...] } }
|
||||
// --- FIX: sort packets chronologically (oldest → newest) ---
|
||||
packets.sort((a, b) => (b.import_time_us || 0) - (a.import_time_us || 0));
|
||||
|
||||
|
||||
const neighborHistory = {};
|
||||
|
||||
for (const pkt of packets.reverse()) {
|
||||
|
||||
Reference in New Issue
Block a user