Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
marxin committed Feb 11, 2024
1 parent 83f1036 commit 614a3a8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions usage-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def empty(self):
return not self.values


global_n = 0
global_memory_data_min = to_gigabyte(psutil.virtual_memory().total)
global_swap_data_min = to_gigabyte(psutil.swap_memory().total)
global_disk_data_total = to_gigabyte(psutil.disk_usage('.').total)
Expand Down Expand Up @@ -189,7 +188,6 @@ def record_process_memory_hog(proc, memory, timestamp):


def record():
global global_n
global global_disk_last_read, global_disk_last_write, global_disk_read_data, global_disk_write_data

active_pids = {}
Expand All @@ -210,8 +208,6 @@ def record():
global_disk_write_data.append(to_megabyte(duration * (disk_info.write_bytes - global_disk_last_write)))
global_disk_last_write = disk_info.write_bytes

global_n += 1

entry = {}
seen_pids = set()
for proc in psutil.Process().children(recursive=True):
Expand Down

0 comments on commit 614a3a8

Please sign in to comment.