Update monitor.py

This commit is contained in:
Mr Chen 2024-11-03 03:34:21 +08:00
parent b020f4c502
commit fa6900a937
1 changed files with 2 additions and 0 deletions

View File

@ -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()