mirror of https://github.com/nicolargo/glances
"sorted by ?" is displayed when setting the sort criterion to "USER" #1407
parent
bfcf212c2c
commit
b4036670e2
1
NEWS
1
NEWS
|
@ -26,6 +26,7 @@ Bugs corrected:
|
||||||
* Stack trace when starts Glances on CentOS #1470
|
* Stack trace when starts Glances on CentOS #1470
|
||||||
* UnicodeEncodeError: 'ascii' codec can't encode character u'\u25cf' - Raspbian stretch #1483
|
* UnicodeEncodeError: 'ascii' codec can't encode character u'\u25cf' - Raspbian stretch #1483
|
||||||
* Prometheus integration broken with latest prometheus_client #1397
|
* Prometheus integration broken with latest prometheus_client #1397
|
||||||
|
* "sorted by ?" is displayed when setting the sort criterion to "USER" #1407
|
||||||
|
|
||||||
Others:
|
Others:
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ class Plugin(GlancesPlugin):
|
||||||
'cpu_percent': 'CPU consumption',
|
'cpu_percent': 'CPU consumption',
|
||||||
'memory_percent': 'memory consumption',
|
'memory_percent': 'memory consumption',
|
||||||
'cpu_times': 'process time',
|
'cpu_times': 'process time',
|
||||||
|
'username': 'user name',
|
||||||
'name': 'process name',
|
'name': 'process name',
|
||||||
None: 'None'}
|
None: 'None'}
|
||||||
|
|
||||||
|
@ -138,7 +139,7 @@ class Plugin(GlancesPlugin):
|
||||||
try:
|
try:
|
||||||
sort_human = self.sort_for_human[glances_processes.sort_key]
|
sort_human = self.sort_for_human[glances_processes.sort_key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
sort_human = '?'
|
sort_human = glances_processes.sort_key
|
||||||
if glances_processes.auto_sort:
|
if glances_processes.auto_sort:
|
||||||
msg = 'sorted automatically'
|
msg = 'sorted automatically'
|
||||||
ret.append(self.curse_add_line(msg))
|
ret.append(self.curse_add_line(msg))
|
||||||
|
|
Loading…
Reference in New Issue