Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/ServerStatus
/ get_cpu
Function
get_cpu
clients/client-psutil.py:92–93 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
90
return
int(size/1024.0/1024.0), int(used/1024.0/1024.0)
91
92
def
get_cpu():
93
return
psutil.cpu_percent(interval=INTERVAL)
94
95
def
liuliang():
96
NET_IN = 0
Callers
1
client-psutil.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected