From e50e8eacb1262644c1a7da1e2e71eb59cb07dfa9 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Thu, 27 Jul 2023 00:43:36 +0100 Subject: [PATCH] cwd --- 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 b4e6fe65..a09c9a9a 100644 --- a/src/pypi_data/cli.py +++ b/src/pypi_data/cli.py @@ -1,3 +1,4 @@ +import os import threading import time @@ -112,7 +113,7 @@ def print_thread(): time.sleep(1) memory = psutil.virtual_memory() cpu = psutil.cpu_percent() - disk = psutil.disk_usage("/") + disk = psutil.disk_usage(os.getcwd()) print(f'\n{memory.available=} / {memory=} / {cpu=} / {disk=}\n') t = threading.Thread(target=print_thread, daemon=True)