mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-28 19:48:24 +00:00
fix: recentPackets in health endpoint — show 20 newest DESC, not 10 oldest
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user