Skip to content

Commit b551998

Browse files
committed
get macos load
1 parent 1c606cc commit b551998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/client-psutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def byte_str(object):
354354
CPU = get_cpu()
355355
NET_IN, NET_OUT = liuliang()
356356
Uptime = get_uptime()
357-
Load_1, Load_5, Load_15 = os.getloadavg() if 'linux' in sys.platform else (0.0, 0.0, 0.0)
357+
Load_1, Load_5, Load_15 = os.getloadavg() if 'linux' in sys.platform or 'darwin' in sys.platform else (0.0, 0.0, 0.0)
358358
MemoryTotal, MemoryUsed = get_memory()
359359
SwapTotal, SwapUsed = get_swap()
360360
HDDTotal, HDDUsed = get_hdd()

0 commit comments

Comments
 (0)