diff --git a/glances/plugins/glances_help.py b/glances/plugins/glances_help.py index 7a02f2d6..b4db9ca1 100644 --- a/glances/plugins/glances_help.py +++ b/glances/plugins/glances_help.py @@ -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') diff --git a/glances/plugins/glances_now.py b/glances/plugins/glances_now.py index 20ffd9d7..cf094e0e 100644 --- a/glances/plugins/glances_now.py +++ b/glances/plugins/glances_now.py @@ -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)