Files
meshcore-analyzer/cmd
dborupandClaude Sonnet 5 e81f89da1e fix: View Path airtime estimate omits fields on 0-relay (direct) packets
Caught on real stg data: a directly-received packet has relays=0, and
while the plain int AirtimeRelayCount's omitempty correctly dropped it
from JSON, the *float64 EstimatedAirtimeMs still encoded as a bare
"estimatedAirtimeMs":0 (a non-nil pointer isn't "empty" to omitempty
even when it points at zero). The frontend's typeof-number check then
rendered "~0ms estimated airtime (undefined relays)". Now both fields
are omitted together whenever there's nothing to relay.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-26 11:10:54 +02:00
..