diff --git a/hwmonDaemon.py b/hwmonDaemon.py index 2bf075a..7ce7b92 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -1376,10 +1376,9 @@ class SystemHealthMonitor: logger.debug(f"Skipping excluded mountpoint: {mountpoint}") continue - # Get usage percentage directly from parts[4] - usage_percent = float(parts[4].rstrip('%')) size_value = self._convert_size_to_bytes(parts[1]) # For total size used_value = self._convert_size_to_bytes(parts[2]) # For used size + usage_percent = (used_size / total_size) * 100 if total_size > 0 else 0 filesystem = { 'mountpoint': mountpoint, 'total': parts[1],