Update monitor.py
This commit is contained in:
parent
b020f4c502
commit
fa6900a937
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue