fix elevation

This commit is contained in:
2026-06-16 12:04:23 +03:00
parent 6b34e75f35
commit dbef86d2c9
4 changed files with 74 additions and 33 deletions
+1
View File
@@ -61,6 +61,7 @@
if (o.rx_pkt_per_s != null) snap.rxPktPerS = Number(o.rx_pkt_per_s);
if (o.per_percent != null) snap.perPercent = Number(o.per_percent);
if (o.rx_quality_percent != null) snap.rxQualityPercent = Number(o.rx_quality_percent);
if (o.stats_at != null) snap.statsAt = Number(o.stats_at);
if (o.fields && typeof o.fields === 'object') {
for (const [k, v] of Object.entries(o.fields)) {
if (!isKnownLabel(k)) snap.extraFields[k] = String(v);