Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Handling multi-partition systems #9

@pozar87

Description

@pozar87

The current (pyarchey 0.6.2) script assumes single / partition and reports invalid result for system with separated /var, /home, etc. (sub-class Disk in pyarchey.py, line 523)

Quick (and ugly - please consider better approach, without multiple iterating over partitions:)) solution might be:

#p = ps.disk_usage('/')
total = sum([ps.disk_usage(part.mountpoint).total for part in ps.disk_partitions()])
used = sum([ps.disk_usage(part.mountpoint).used for part in ps.disk_partitions()])

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions