From caadb58081b550f83fab355f103f4c17f8004611 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sun, 20 Oct 2024 16:57:00 +0100 Subject: [PATCH] Fix partitions --- src/pypi_data/combine_parquet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pypi_data/combine_parquet.py b/src/pypi_data/combine_parquet.py index d27799c5..c101e2aa 100644 --- a/src/pypi_data/combine_parquet.py +++ b/src/pypi_data/combine_parquet.py @@ -47,7 +47,6 @@ def append_buffer( def log_system_stats(path: Path): cpu_usage = psutil.cpu_percent(percpu=True) process_mem_percent = psutil.Process().memory_percent() - psutil.disk_partitions(all=False) mem = psutil.virtual_memory() log.info( f"System: cpu={cpu_usage} " @@ -56,7 +55,7 @@ def log_system_stats(path: Path): f"mem_used={ByteSize(mem.used).human_readable(decimal=True)} " f"mem_percent={mem.percent:.1f}%" ) - for partition in psutil.disk_partitions(all=True): + for partition in psutil.disk_partitions(all=False): disk_usage = psutil.disk_usage(partition.mountpoint) log.info( f"Disk: ({partition.fstype} - {partition.mountpoint}) "