Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e5ad58978 | |||
| 8ffe8cdffb | |||
| b0a5e05e4a |
+2
-2
@@ -98,8 +98,8 @@ def generate_stats() -> dict:
|
|||||||
"disk_pct": round(disk.percent, 1),
|
"disk_pct": round(disk.percent, 1),
|
||||||
"cpu_temp": _get_cpu_temp(),
|
"cpu_temp": _get_cpu_temp(),
|
||||||
"uptime_hrs": round((time.time() - psutil.boot_time()) / 3600, 1),
|
"uptime_hrs": round((time.time() - psutil.boot_time()) / 3600, 1),
|
||||||
"net_rx_kbps": rx_kbps,
|
"net_rx_kbps": rx_kbps / 8,
|
||||||
"net_tx_kbps": tx_kbps,
|
"net_tx_kbps": tx_kbps / 8, # kByte/s for humans
|
||||||
"services": _mock_services(),
|
"services": _mock_services(),
|
||||||
"timestamp": int(time.time()),
|
"timestamp": int(time.time()),
|
||||||
"local_time": _local_time_fields(),
|
"local_time": _local_time_fields(),
|
||||||
|
|||||||
Reference in New Issue
Block a user