netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=cbb724eb6e0b5744ec9f2439d60330b0d71a8056

commit cbb724eb6e0b5744ec9f2439d60330b0d71a8056
Author: Alastair Poole <nets...@gmail.com>
Date:   Tue Sep 8 13:07:12 2020 +0100

    ui_cpu: poll 1/10 sec
---
 src/bin/ui/ui_cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/ui/ui_cpu.c b/src/bin/ui/ui_cpu.c
index 754054d..63f2bd1 100644
--- a/src/bin/ui/ui_cpu.c
+++ b/src/bin/ui/ui_cpu.c
@@ -253,7 +253,7 @@ _core_times_cb(void *data, Ecore_Thread *thread)
 
    for (int i = 0; !ecore_thread_check(thread); i = 0)
      {
-        cores = system_cpu_usage_get(&ncpu);
+        cores = system_cpu_usage_delayed_get(&ncpu, 100000);
         EINA_LIST_FOREACH(ui->cpu_list, l, progress)
           {
              *progress->value = cores[i]->percent;

-- 


Reply via email to