FS module alias configuration do not taken into account everytime #3010

This commit is contained in:
nicolargo 2024-11-11 16:04:09 +01:00
parent 10543581ed
commit 28fb7bff62
2 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ critical=90
# Allow additional file system types (comma-separated FS type) # Allow additional file system types (comma-separated FS type)
#allow=shm #allow=shm
# Alias for root file system # Alias for root file system
#alias=/:Root #alias=/:Root,/zsfpool:ZSF
[irq] [irq]
# Documentation: https://glances.readthedocs.io/en/latest/aoa/irq.html # Documentation: https://glances.readthedocs.io/en/latest/aoa/irq.html

View File

@ -299,7 +299,7 @@ class PluginModel(GlancesPluginModel):
mnt_point = i['alias'] if 'alias' in i else i['mnt_point'] mnt_point = i['alias'] if 'alias' in i else i['mnt_point']
if len(mnt_point) + len(i['device_name'].split('/')[-1]) <= name_max_width - 3: if len(mnt_point) + len(i['device_name'].split('/')[-1]) <= name_max_width - 3:
# If possible concatenate mode info... Glances touch inside :) # If possible concatenate mode info... Glances touch inside :)
mnt_point = i['mnt_point'] + ' (' + i['device_name'].split('/')[-1] + ')' mnt_point += ' (' + i['device_name'].split('/')[-1] + ')'
elif len(mnt_point) > name_max_width: elif len(mnt_point) > name_max_width:
mnt_point = mnt_point[:name_max_width] + '_' mnt_point = mnt_point[:name_max_width] + '_'
msg = '{:{width}}'.format(nativestr(mnt_point), width=name_max_width + 1) msg = '{:{width}}'.format(nativestr(mnt_point), width=name_max_width + 1)