diff options
Diffstat (limited to 'src/utils/fs.py')
-rw-r--r-- | src/utils/fs.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/utils/fs.py b/src/utils/fs.py index 3de8ee2..381f65b 100644 --- a/src/utils/fs.py +++ b/src/utils/fs.py @@ -81,17 +81,6 @@ def umount_all(): umount(path) -def get_usedperc(mountpoint): - """ - Returns percetage of used filesystem as decimal number. - """ - try: - total, used, free, perc = psutil.disk_usage(mountpoint) - except FileNotFoundError: - return '0' - return str(perc) - - def ogReduceFs(disk, part): """ Shrink filesystem of a partition. Supports ext4 and ntfs partitions. |