summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2024-11-11 16:04:09 +0100
committernicolargo <nicolashennion@gmail.com>2024-11-11 16:04:09 +0100
commit28fb7bff625c3be83e715602d7c6c538ec571417 (patch)
tree9054af17ce48e59e7e37d1220c8e692f839c66f3
parent10543581ed508aa4ba8100a5000ce7205d0c697d (diff)
FS module alias configuration do not taken into account everytime #3010
-rw-r--r--conf/glances.conf2
-rw-r--r--glances/plugins/fs/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/glances.conf b/conf/glances.conf
index a038e4ee..1edb8314 100644
--- a/conf/glances.conf
+++ b/conf/glances.conf
@@ -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
diff --git a/glances/plugins/fs/__init__.py b/glances/plugins/fs/__init__.py
index 068b952a..db772405 100644
--- a/glances/plugins/fs/__init__.py
+++ b/glances/plugins/fs/__init__.py
@@ -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)