Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/ServerStatus
/ get_swap
Function
get_swap
clients/client-psutil.py:70–72 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
68
return
int(Mem.total / 1024.0), int(Mem.used / 1024.0)
69
70
def
get_swap():
71
Mem = psutil.swap_memory()
72
return
int(Mem.total/1024.0), int(Mem.used/1024.0)
73
74
def
get_hdd():
75
if
"darwin"
in sys.platform:
Callers
1
client-psutil.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected