processes: use 200ms CPU measure time to get actual results, previous implementation showed 0 most of the time.
This commit is contained in:
parent
e9054ac9e7
commit
569321aa23
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class AdminProcessManagementView(BaseAppView):
|
|||
'name': proc.name(),
|
||||
'mem_rss': mem.rss,
|
||||
'mem_vms': mem.vms,
|
||||
'cpu_percent': proc.cpu_percent(),
|
||||
'cpu_percent': proc.cpu_percent(interval=0.2),
|
||||
'create_time': proc.create_time(),
|
||||
'cmd': ' '.join(proc.cmdline()),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue