diff options
author | nicolargo <nicolas@nicolargo.com> | 2019-07-03 22:31:16 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2019-07-03 22:31:16 +0200 |
commit | b4036670e202f503aa3a516b098f14c500497e79 (patch) | |
tree | 19d51ce32917e1cb32955d418a8e00f6476d195a | |
parent | bfcf212c2c6286d6f11fce06a16aa546c4f47c41 (diff) |
"sorted by ?" is displayed when setting the sort criterion to "USER" #1407
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | glances/plugins/glances_processcount.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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: diff --git a/glances/plugins/glances_processcount.py b/glances/plugins/glances_processcount.py index 4276760f..d4488fd1 100644 --- a/glances/plugins/glances_processcount.py +++ b/glances/plugins/glances_processcount.py @@ -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)) |