mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-08 19:18:11 +03:00
Catch message for processuser information
This commit is contained in:
parent
94ce27af07
commit
2681911242
@ -1145,7 +1145,10 @@ class GlancesGrabProcesses:
|
||||
try:
|
||||
procstat['username'] = proc.username
|
||||
except KeyError:
|
||||
procstat['username'] = proc.uids.real
|
||||
try:
|
||||
procstat['username'] = proc.uids.real
|
||||
except KeyError:
|
||||
procstat['username'] = "?"
|
||||
procstat['cmdline'] = " ".join(proc.cmdline)
|
||||
procstat['memory_info'] = proc.get_memory_info()
|
||||
procstat['memory_percent'] = proc.get_memory_percent()
|
||||
|
Loading…
Reference in New Issue
Block a user