Skip to content

Commit

Permalink
Change default max sizebar size
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Nov 22, 2017
1 parent d367cc0 commit ea6093c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions glances/outputs/glances_curses.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class _GlancesCurses(object):
_left_sidebar = ['network', 'wifi', 'ports', 'diskio', 'fs',
'irq', 'folders', 'raid', 'sensors', 'now']
_left_sidebar_min_width = 23
_left_sidebar_max_width = 84
_left_sidebar_max_width = 64

# Define right sidebar
_right_sidebar = ['docker', 'processcount', 'amps', 'processlist', 'alert']
Expand Down Expand Up @@ -694,7 +694,8 @@ def __display_top(self, stat_display, stats):
if self.args.full_quicklook:
quicklook_width = self.screen.getmaxyx()[1] - (stats_width + 8 + stats_number * self.space_between_column)
else:
quicklook_width = min(self.screen.getmaxyx()[1] - (stats_width + 8 + stats_number * self.space_between_column), 79)
quicklook_width = min(self.screen.getmaxyx()[1] - (stats_width + 8 + stats_number * self.space_between_column),
self._left_sidebar_max_width - 5)
try:
stat_display["quicklook"] = stats.get_plugin(
'quicklook').get_stats_display(max_width=quicklook_width, args=self.args)
Expand Down

0 comments on commit ea6093c

Please sign in to comment.