Remove code duplication

This commit is contained in:
desbma 2014-12-11 13:13:34 +01:00 committed by Alessio Sergi
parent 1ba459e696
commit 59fc36e334

View File

@ -359,10 +359,7 @@ class Plugin(GlancesPlugin):
return ret
# Compute the sort key
if glances_processes.getmanualsortkey() is None:
process_sort_key = glances_processes.getautosortkey()
else:
process_sort_key = glances_processes.getmanualsortkey()
process_sort_key = glances_processes.getsortkey()
sort_style = 'SORT'
# Header