diff --git a/library/sensors/sensors_librehardwaremonitor.py b/library/sensors/sensors_librehardwaremonitor.py index 29436e3d..b37ab629 100644 --- a/library/sensors/sensors_librehardwaremonitor.py +++ b/library/sensors/sensors_librehardwaremonitor.py @@ -424,7 +424,11 @@ def virtual_free() -> int: # In bytes class Disk(sensors.Disk): @staticmethod def disk_usage_percent() -> float: - return psutil.disk_usage("/").percent + disks = psutil.disk_partitions(all=True) + usage = 0 + for disk in disks: + usage = usage + psutil.disk_usage(disk.device).percent + return usage / len(disks) # return all used space among all disks @staticmethod def disk_used() -> int: # In bytes