mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-30 12:02:49 +03:00
FS module alias configuration do not taken into account everytime #3010
This commit is contained in:
parent
10543581ed
commit
28fb7bff62
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user