Feat : Better stats
Some checks failed
Build and Push Docker Images / docker (push) Failing after 7s
Some checks failed
Build and Push Docker Images / docker (push) Failing after 7s
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user