Catch message for processuser information

This commit is contained in:
Nicolas Hennion 2013-09-08 15:26:21 +02:00
parent 94ce27af07
commit 2681911242

View File

@ -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()