netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=27c4d946807999e5e4c9801a67ae075179fe3128
commit 27c4d946807999e5e4c9801a67ae075179fe3128 Author: Alastair Poole <[email protected]> Date: Sat May 16 12:26:35 2020 +0100 process: When using KERN_PROC_ALL multiply thread cpu times. --- src/bin/system/process.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/system/process.c b/src/bin/system/process.c index 24b2be5..e71be36 100644 --- a/src/bin/system/process.c +++ b/src/bin/system/process.c @@ -1010,8 +1010,12 @@ proc_info_by_pid(int pid) kp = &kps[i]; Proc_Info *t = _proc_thread_info(kp, EINA_TRUE); if (!p) - p = _proc_thread_info(kp, EINA_FALSE); + { + p = _proc_thread_info(kp, EINA_FALSE); + p->cpu_time = 0; + } + p->cpu_time += t->cpu_time; p->threads = eina_list_append(p->threads, t); } --
