From abab5e91cfc8f89410b3b50d0971a5ea89b7e238 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Thu, 27 Jul 2023 00:34:27 +0100 Subject: [PATCH] disk? --- src/pypi_data/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pypi_data/cli.py b/src/pypi_data/cli.py index 47be0ff5..81c8fd34 100644 --- a/src/pypi_data/cli.py +++ b/src/pypi_data/cli.py @@ -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()