init usage_percent
This commit is contained in:
@ -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])
|
||||
|
||||
Reference in New Issue
Block a user