Fix traffic counter entries

This commit is contained in:
Mark Qvist 2025-01-25 16:20:40 +01:00
parent 93aa17177b
commit 156c2d4bd2

View File

@ -2527,10 +2527,10 @@ class RNSTransport(Sensor):
"transport_enabled": RNS.Reticulum.transport_enabled(),
"transport_identity": RNS.Transport.identity.hash,
"transport_uptime": time.time()-RNS.Transport.start_time if RNS.Reticulum.transport_enabled() else None,
"traffic_rxb": RNS.Transport.traffic_rxb,
"traffic_txb": RNS.Transport.traffic_txb,
"speed_rx": RNS.Transport.speed_rx,
"speed_tx": RNS.Transport.speed_tx,
"traffic_rxb": ifstats["rxb"],
"traffic_txb": ifstats["txb"],
"speed_rx": ifstats["rxs"],
"speed_tx": ifstats["txs"],
"memory_used": rss,
"ifstats": ifstats,
"link_count": r.get_link_count(),