Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/ServerStatus
/ get_memory
Function
get_memory
clients/client-psutil.py:66–68 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
64
return
int(time.time() - psutil.boot_time())
65
66
def
get_memory():
67
Mem = psutil.virtual_memory()
68
return
int(Mem.total / 1024.0), int(Mem.used / 1024.0)
69
70
def
get_swap():
71
Mem = psutil.swap_memory()
Callers
1
client-psutil.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected