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_enabled": RNS.Reticulum.transport_enabled(),
"transport_identity": RNS.Transport.identity.hash, "transport_identity": RNS.Transport.identity.hash,
"transport_uptime": time.time()-RNS.Transport.start_time if RNS.Reticulum.transport_enabled() else None, "transport_uptime": time.time()-RNS.Transport.start_time if RNS.Reticulum.transport_enabled() else None,
"traffic_rxb": RNS.Transport.traffic_rxb, "traffic_rxb": ifstats["rxb"],
"traffic_txb": RNS.Transport.traffic_txb, "traffic_txb": ifstats["txb"],
"speed_rx": RNS.Transport.speed_rx, "speed_rx": ifstats["rxs"],
"speed_tx": RNS.Transport.speed_tx, "speed_tx": ifstats["txs"],
"memory_used": rss, "memory_used": rss,
"ifstats": ifstats, "ifstats": ifstats,
"link_count": r.get_link_count(), "link_count": r.get_link_count(),