Update task_manager_index.py

This commit is contained in:
Mr Chen 2024-06-05 15:31:09 +08:00
parent 5a37c742e2
commit 23fe4928e0
1 changed files with 1 additions and 0 deletions

View File

@ -866,6 +866,7 @@ class mainClass(object):
tmp['threads'] = p.num_threads()
tmp['ps'] = self.get_process_ps(tmp['name'], pid, tmp['exe'], p)
tmp['up'], tmp['up_package'], tmp['down'], tmp['down_package'] = self.get_process_network(pid)
# print(pid,tmp['up'], tmp['up_package'], tmp['down'], tmp['down_package'])
if tmp['cpu_percent'] > 100: tmp['cpu_percent'] = 0.1
info['cpu'] += tmp['cpu_percent']
info['disk'] += tmp['io_write_speed'] + tmp['io_read_speed']