Feat : Better stats
Some checks failed
Build and Push Docker Images / docker (push) Failing after 7s

This commit is contained in:
jeanotx32
2026-05-18 23:54:44 -04:00
parent c7cc18101a
commit 3080826806
7 changed files with 476 additions and 6 deletions

View File

@@ -122,12 +122,14 @@ def system_info(_: None = Depends(require_api_key)):
net_recv_per_sec = (net2.bytes_recv - net1.bytes_recv) * 2
return {
"cpu_percent": cpu_percent,
"ram_used": mem.used,
"ram_total": mem.total,
"ram_percent": mem.percent,
"cpu_percent": cpu_percent,
"ram_used": mem.used,
"ram_total": mem.total,
"ram_percent": mem.percent,
"net_sent_per_sec": net_sent_per_sec,
"net_recv_per_sec": net_recv_per_sec,
"net_bytes_sent": net2.bytes_sent,
"net_bytes_recv": net2.bytes_recv,
}