fix: recentPackets in health endpoint — show 20 newest DESC, not 10 oldest

This commit is contained in:
you
2026-03-20 08:39:01 +00:00
parent fa40ede9e7
commit c997318cd2
+1 -1
View File
@@ -1756,7 +1756,7 @@ app.get('/api/nodes/:pubkey/health', (req, res) => {
avgSnr: o.snrN ? o.snrSum / o.snrN : null, avgRssi: o.rssiN ? o.rssiSum / o.rssiN : null
})).sort((a, b) => b.packetCount - a.packetCount);
const recentPackets = packets.slice(-10).reverse();
const recentPackets = packets.slice(0, 20);
const result = {
node: node.node || node, observers,