Skip to content

Commit

Permalink
Update task_manager_index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jun 5, 2024
1 parent 80b6158 commit eaa1a74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/task_manager/task_manager_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ def get_process_net_list(self):
tmp['down_package'] = int(np_list[3])
tmp['up_package'] = int(np_list[4])
self.__process_net_list[tmp['pid']] = tmp
self.last_net_process = self.__process_net_list
self.last_net_process_time = time.time()

if time.time() - self.last_net_process_time > 3:
self.last_net_process = self.__process_net_list
self.last_net_process_time = time.time()

# 获取进程连接数
def get_connects(self, pid):
Expand Down

0 comments on commit eaa1a74

Please sign in to comment.