提交 57e432a5 编写于 作者: N nicolargo

Glances API returns the processes PPID (issue #926)

上级 cf6735a7
......@@ -9,6 +9,7 @@ Enhancements and new features:
* Add CouchDB exporter (issue #928)
* Highlight max stats in the processes list (issue #878)
* Glances API returns the processes PPID (issue #926)
Bugs corrected:
......
......@@ -281,10 +281,10 @@ class GlancesProcesses(object):
self.username_cache[procstat['pid']] = "?"
procstat['username'] = self.username_cache[procstat['pid']]
# Process status, nice, memory_info and cpu_times
# Process status, nice, memory_info, cpu_times and ppid (issue #926)
try:
procstat.update(
proc.as_dict(attrs=['status', 'nice', 'memory_info', 'cpu_times']))
proc.as_dict(attrs=['status', 'nice', 'memory_info', 'cpu_times', 'ppid']))
except psutil.NoSuchProcess:
pass
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册