init usage_percent
This commit is contained in:
@ -1368,6 +1368,8 @@ class SystemHealthMonitor:
|
|||||||
try:
|
try:
|
||||||
parts = fs_line.split()
|
parts = fs_line.split()
|
||||||
if len(parts) >= 6:
|
if len(parts) >= 6:
|
||||||
|
usage_percent = 0
|
||||||
|
|
||||||
# Skip pool name entries that start with 'appPool:'
|
# Skip pool name entries that start with 'appPool:'
|
||||||
if parts[0].startswith('appPool:'):
|
if parts[0].startswith('appPool:'):
|
||||||
continue
|
continue
|
||||||
@ -1378,12 +1380,6 @@ class SystemHealthMonitor:
|
|||||||
|
|
||||||
mountpoint = parts[5]
|
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':
|
if parts[1][-1] in 'BKMGT' and parts[2][-1] in 'BKMGT':
|
||||||
total_size = self._convert_size_to_bytes(parts[1])
|
total_size = self._convert_size_to_bytes(parts[1])
|
||||||
used_size = self._convert_size_to_bytes(parts[2])
|
used_size = self._convert_size_to_bytes(parts[2])
|
||||||
|
|||||||
Reference in New Issue
Block a user