mirror of https://github.com/nicolargo/glances
Add sort on the Bootle interface
parent
05533c1c01
commit
54365fa849
|
@ -63,6 +63,7 @@ class glancesBottle:
|
|||
'DEFAULT': '',
|
||||
'UNDERLINE': 'underline',
|
||||
'BOLD': 'bold',
|
||||
'SORT': 'sort',
|
||||
'OK': 'ok',
|
||||
'TITLE': 'title',
|
||||
'CAREFUL': 'careful',
|
||||
|
|
|
@ -124,6 +124,7 @@ class glancesCurses:
|
|||
'DEFAULT': self.no_color,
|
||||
'UNDERLINE': curses.A_UNDERLINE,
|
||||
'BOLD': A_BOLD,
|
||||
'SORT': A_BOLD,
|
||||
'OK': self.default_color2,
|
||||
'TITLE': self.title_color,
|
||||
'CAREFUL': self.ifCAREFUL_color2,
|
||||
|
|
|
@ -107,7 +107,7 @@ class Plugin(GlancesPlugin):
|
|||
try:
|
||||
args.process_sorted_by
|
||||
except AttributeError:
|
||||
args.process_sorted_by = 'cpu_percent'
|
||||
args.process_sorted_by = glances_processes.getsortkey()
|
||||
if (args.process_sorted_by == 'auto'):
|
||||
msg = "{0}".format(_("sorted automatically"))
|
||||
ret.append(self.curse_add_line(msg))
|
||||
|
|
|
@ -75,12 +75,12 @@ class Plugin(GlancesPlugin):
|
|||
try:
|
||||
args.process_sorted_by
|
||||
except AttributeError:
|
||||
args.process_sorted_by = 'cpu_percent'
|
||||
args.process_sorted_by = glances_processes.getsortkey()
|
||||
if (args.process_sorted_by == 'auto'):
|
||||
process_sort_key = glances_processes.getsortkey()
|
||||
else:
|
||||
process_sort_key = args.process_sorted_by
|
||||
sort_style = 'BOLD'
|
||||
sort_style = 'SORT'
|
||||
|
||||
# Header
|
||||
msg = "{0:15}".format(" ")
|
||||
|
|
Loading…
Reference in New Issue