Fix chart on node.html.

This commit is contained in:
Pablo Revilla
2025-12-09 16:19:55 -08:00
parent 3d6c01f020
commit 00aa3216ff
+4 -2
View File
@@ -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()) {