From 23238a431b47754fa829a7d8570d019095431466 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 9 Mar 2025 19:19:39 -0400 Subject: [PATCH] init usage_percent --- hwmonDaemon.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index b0e59f6..228ba61 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -1368,6 +1368,8 @@ class SystemHealthMonitor: try: parts = fs_line.split() if len(parts) >= 6: + usage_percent = 0 + # Skip pool name entries that start with 'appPool:' if parts[0].startswith('appPool:'): continue @@ -1377,12 +1379,6 @@ class SystemHealthMonitor: continue mountpoint = parts[5] - - # Skip excluded mountpoints - if any(pattern in mountpoint for pattern in ['/media', '/mnt/pve/mediafs', '/opt/metube_downloads']): - if self.dry_run: - logger.debug(f"Skipping excluded mountpoint: {mountpoint}") - continue if parts[1][-1] in 'BKMGT' and parts[2][-1] in 'BKMGT': total_size = self._convert_size_to_bytes(parts[1])