mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-09-27 01:07:53 +00:00
Adds AirtimeMs to WardrivingSession: total network airtime consumed relaying a session's messages, using the exact same formula as the Overview tab's "Relay Airtime Share" (issue #1768) — ToA(payload_bytes) x COUNT(DISTINCT resolved repeater in path), summed per message. That formula needs the in-memory store's resolved-path index (resolvedPubkeyReverse), which db.go's SQL-only wardriving code doesn't have — so buildWardrivingSessions now also tracks each session's transmission IDs (unexported, json:"-"), and the route handler calls the new PacketStore.AirtimeForTransmissions(txIDs) to fill in AirtimeMs after the fact. Omitted entirely (nil) in DB-only mode rather than shown as a misleading zero. Frontend adds an Airtime column to the Sessions table (ms/s formatting, dash when unavailable). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>