"sorted by ?" is displayed when setting the sort criterion to "USER" #1407

pull/1502/head
nicolargo 2019-07-03 22:31:16 +02:00
parent bfcf212c2c
commit b4036670e2
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -26,6 +26,7 @@ Bugs corrected:
* Stack trace when starts Glances on CentOS #1470
* UnicodeEncodeError: 'ascii' codec can't encode character u'\u25cf' - Raspbian stretch #1483
* Prometheus integration broken with latest prometheus_client #1397
* "sorted by ?" is displayed when setting the sort criterion to "USER" #1407
Others:

View File

@ -47,6 +47,7 @@ class Plugin(GlancesPlugin):
'cpu_percent': 'CPU consumption',
'memory_percent': 'memory consumption',
'cpu_times': 'process time',
'username': 'user name',
'name': 'process name',
None: 'None'}
@ -138,7 +139,7 @@ class Plugin(GlancesPlugin):
try:
sort_human = self.sort_for_human[glances_processes.sort_key]
except KeyError:
sort_human = '?'
sort_human = glances_processes.sort_key
if glances_processes.auto_sort:
msg = 'sorted automatically'
ret.append(self.curse_add_line(msg))