Lines 66-72
def query(self, request):
|
Link Here
|
---|
|
66 |
listEntry['pid'] = process.pid |
66 |
listEntry['pid'] = process.pid |
67 |
listEntry['cpu'] = 0.0 |
67 |
listEntry['cpu'] = 0.0 |
68 |
listEntry['mem'] = process.get_memory_percent() |
68 |
listEntry['mem'] = process.get_memory_percent() |
69 |
listEntry['command'] = ' '.join(process.cmdline) |
69 |
listEntry['command'] = ' '.join(process.cmdline or []) |
70 |
if listEntry['command'] == '': |
70 |
if listEntry['command'] == '': |
71 |
listEntry['command'] = process.name |
71 |
listEntry['command'] = process.name |
72 |
if category == 'all': |
72 |
if category == 'all': |