Skip to content

Commit

Permalink
disk?
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Jul 26, 2023
1 parent bb78941 commit abab5e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pypi_data/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def print_thread():
time.sleep(1)
memory = psutil.virtual_memory()
cpu = psutil.cpu_percent()
print(f'\n{memory.available=} / {memory=} / {cpu=}\n')
disk = psutil.disk_usage("/")
print(f'\n{memory.available=} / {memory=} / {cpu=} / {disk=}\n')

t = threading.Thread(target=print_thread, daemon=True)
t.start()
Expand Down

0 comments on commit abab5e9

Please sign in to comment.