mirror of https://github.com/nicolargo/glances
Correct issue if process has no user name.
parent
4cd3c57c24
commit
a45242138c
|
@ -53,7 +53,7 @@ def processes_to_programs(processes):
|
||||||
programs_dict[p[key]]['childrens'].append(p['pid'])
|
programs_dict[p[key]]['childrens'].append(p['pid'])
|
||||||
# If all the subprocess has the same value, display it
|
# If all the subprocess has the same value, display it
|
||||||
programs_dict[p[key]]['username'] = (
|
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]]['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 '_'
|
programs_dict[p[key]]['status'] = p['status'] if p['status'] == programs_dict[p[key]]['status'] else '_'
|
||||||
|
|
Loading…
Reference in New Issue