This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository evisum.

View the commit online.

commit 215f409a6cb3082df7aaa53b253604143c788249
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Apr 2 17:20:06 2026 +0100

    sensors: it's not even blocking.
    
    ffs
---
 src/bin/ui/evisum_ui_sensors.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/bin/ui/evisum_ui_sensors.c b/src/bin/ui/evisum_ui_sensors.c
index 0525291..4541aa8 100644
--- a/src/bin/ui/evisum_ui_sensors.c
+++ b/src/bin/ui/evisum_ui_sensors.c
@@ -320,8 +320,6 @@ _evisum_ui_sensors_poll(void *data, Ecore_Thread *thread) {
 
     while (!ecore_thread_check(thread)) {
 
-        struct timeval ts, te;
-        gettimeofday(&ts, NULL);
         sensors = system_sensors_thermal_get(&view->n_sensors);
         for (int i = 0; i < view->n_sensors; i++) system_sensor_thermal_get(sensors[i]);
 
@@ -333,10 +331,7 @@ _evisum_ui_sensors_poll(void *data, Ecore_Thread *thread) {
                 break;
             }
             if (ecore_thread_check(thread)) return;
-            gettimeofday(&te, NULL);
-            unsigned long interval = 250000 - (te.tv_usec - ts.tv_usec);
-            if (interval > 250000) interval = 250000;
-            usleep(interval);
+            usleep(125000);
         }
     }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to