init usage_percent

This commit is contained in:
2025-03-09 19:19:39 -04:00
parent cc771cfaab
commit 23238a431b

View File

@ -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
@ -1378,12 +1380,6 @@ class SystemHealthMonitor:
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])
used_size = self._convert_size_to_bytes(parts[2])