mirror of https://github.com/nicolargo/glances
Merge branch 'develop' of github.com:nicolargo/glances into develop
commit
b60f704ceb
|
@ -8,3 +8,4 @@ autoflake
|
|||
codespell
|
||||
memory-profiler
|
||||
matplotlib
|
||||
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
|
@ -1,3 +1,4 @@
|
|||
sphinx
|
||||
sphinx_rtd_theme
|
||||
reuse
|
||||
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
|
@ -53,7 +53,7 @@ def processes_to_programs(processes):
|
|||
programs_dict[p[key]]['childrens'].append(p['pid'])
|
||||
# If all the subprocess has the same value, display it
|
||||
programs_dict[p[key]]['username'] = (
|
||||
p['username'] if p['username'] == programs_dict[p[key]]['username'] else '_'
|
||||
p['username'] if ('username' in p) and (p['username'] == programs_dict[p[key]]['username']) else '_'
|
||||
)
|
||||
programs_dict[p[key]]['nice'] = p['nice'] if p['nice'] == programs_dict[p[key]]['nice'] else '_'
|
||||
programs_dict[p[key]]['status'] = p['status'] if p['status'] == programs_dict[p[key]]['status'] else '_'
|
||||
|
|
Loading…
Reference in New Issue