mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
Update monitor.py
This commit is contained in:
@@ -138,6 +138,8 @@ class monitor:
|
||||
info = {}
|
||||
# 取当前CPU Io
|
||||
info['used'] = psutil.cpu_percent(interval=1)
|
||||
info['used'] = round(info['used'], 2)
|
||||
|
||||
info['mem'] = getMemUsed()
|
||||
|
||||
netio = self.getNetIoInfo()
|
||||
|
||||
Reference in New Issue
Block a user