mirror of
https://github.com/nicolargo/glances.git
synced 2024-09-11 12:47:14 +03:00
Merge pull request #2023 from RazCrimson/fix-n-key-wrong-behaviour
Fix N key wrong behavior
This commit is contained in:
commit
a72cbde480
@ -83,6 +83,7 @@ class Plugin(GlancesPlugin):
|
||||
self.view_data['show_hide_filesystem'] = msg_col.format('f', 'Show/hide filesystem stats')
|
||||
self.view_data['view_cumulative_network'] = msg_col2.format('U', 'View cumulative network I/O')
|
||||
self.view_data['show_hide_network'] = msg_col.format('n', 'Show/hide network stats')
|
||||
self.view_data['show_hide_time'] = msg_col.format('N', 'Show/hide current time')
|
||||
self.view_data['show_hide_filesytem_freespace'] = msg_col2.format('F', 'Show filesystem free space')
|
||||
self.view_data['show_hide_sensors'] = msg_col.format('s', 'Show/hide sensors stats')
|
||||
self.view_data['generate_graphs'] = msg_col2.format('g', 'Generate graphs for current history')
|
||||
|
@ -69,6 +69,9 @@ class Plugin(GlancesPlugin):
|
||||
# Init the return message
|
||||
ret = []
|
||||
|
||||
if not self.stats or self.is_disabled():
|
||||
return ret
|
||||
|
||||
# Build the string message
|
||||
# 23 is the padding for the process list
|
||||
msg = '{:23}'.format(self.stats)
|
||||
|
Loading…
Reference in New Issue
Block a user