MCPcopy 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
66def get_memory():
67 Mem = psutil.virtual_memory()
68 return int(Mem.total / 1024.0), int(Mem.used / 1024.0)
69
70def get_swap():
71 Mem = psutil.swap_memory()

Callers 1

client-psutil.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected