mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-09-27 00:47:52 +00:00
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>