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=shm
# Alias for root file system
#alias=/:Root
#alias=/:Root,/zsfpool:ZSF
[irq]
# 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']
if len(mnt_point) + len(i['device_name'].split('/')[-1]) <= name_max_width - 3:
# 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:
mnt_point = mnt_point[:name_max_width] + '_'
msg = '{:{width}}'.format(nativestr(mnt_point), width=name_max_width + 1)