Skip to content

Commit

Permalink
Fix partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Oct 20, 2024
1 parent c406e9e commit caadb58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pypi_data/combine_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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} "
Expand All @@ -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}) "
Expand Down

0 comments on commit caadb58

Please sign in to comment.