changed rx/tx to kByte/s

This commit is contained in:
Mikkeli Matlock
2026-02-16 16:40:28 +09:00
parent 227f66dbff
commit 9ace7be32b

View File

@@ -98,8 +98,8 @@ def generate_stats() -> dict:
"disk_pct": round(disk.percent, 1),
"cpu_temp": _get_cpu_temp(),
"uptime_hrs": round((time.time() - psutil.boot_time()) / 3600, 1),
"net_rx_kbps": rx_kbps,
"net_tx_kbps": tx_kbps,
"net_rx_kbps": rx_kbps / 8,
"net_tx_kbps": tx_kbps / 8, # kByte/s for humans
"services": _mock_services(),
"timestamp": int(time.time()),
"local_time": _local_time_fields(),