netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=cce798aea585500c395af636725f5bb7369b6df7
commit cce798aea585500c395af636725f5bb7369b6df7 Author: Alastair Poole <nets...@gmail.com> Date: Wed Mar 31 16:12:24 2021 +0100 bg: cpu online... Can turn them on and off in real time on some systems.. --- src/bin/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/main.c b/src/bin/main.c index 3608add..0c46f28 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -39,6 +39,7 @@ _background_poller_cb(void *data, Ecore_Thread *thread) system_memory_usage_get(&memory); ui->mem_total = memory.total; + ui->mem_used = memory.used; while (!ecore_thread_check(thread)) { @@ -58,7 +59,7 @@ _background_poller_cb(void *data, Ecore_Thread *thread) if (file_system_in_use("ZFS")) ui->mem_used += memory.zfs_arc_used; - ui->cpu_usage = percent / ncpu; + ui->cpu_usage = percent / system_cpu_online_count_get(); } } --