summaryrefslogtreecommitdiffstats
path: root/glances/plugins/glances_diskio.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/plugins/glances_diskio.py')
-rw-r--r--glances/plugins/glances_diskio.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/glances/plugins/glances_diskio.py b/glances/plugins/glances_diskio.py
index b42226b4..5997570f 100644
--- a/glances/plugins/glances_diskio.py
+++ b/glances/plugins/glances_diskio.py
@@ -39,12 +39,6 @@ class Plugin(GlancesPlugin):
# We want to display the stat in the curse interface
self.display_curse = True
- # Set the message position
- # It is NOT the curse position but the Glances column/line
- # Enter -1 to right align
- self.column_curse = 0
- # Enter -1 to diplay bottom
- self.line_curse = 3
# Init the stats
self.reset()
@@ -134,13 +128,15 @@ class Plugin(GlancesPlugin):
# Do not display hidden interfaces
if self.is_hide(i['disk_name']):
continue
+ # Is there an alias for the disk name ?
+ disk_name = self.has_alias(i['disk_name'])
+ if disk_name is None:
+ disk_name = i['disk_name']
# New line
ret.append(self.curse_new_line())
- if len(i['disk_name']) > 9:
+ if len(disk_name) > 9:
# Cut disk name if it is too long
- disk_name = '_' + i['disk_name'][-8:]
- else:
- disk_name = i['disk_name']
+ disk_name = '_' + disk_name[-8:]
msg = '{0:9}'.format(disk_name)
ret.append(self.curse_add_line(msg))
txps = self.auto_unit(int(i['read_bytes'] // i['time_since_update']))