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 ed43c3d7bdb7e7776457e5e53a38379cf0360b6a
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Apr 2 17:09:05 2026 +0100
sensors: adjust sleep time based on block.
I think this is right.
---
src/bin/ui/evisum_ui_sensors.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/bin/ui/evisum_ui_sensors.c b/src/bin/ui/evisum_ui_sensors.c
index 34d7732..0525291 100644
--- a/src/bin/ui/evisum_ui_sensors.c
+++ b/src/bin/ui/evisum_ui_sensors.c
@@ -320,6 +320,8 @@ _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]);
@@ -331,7 +333,10 @@ _evisum_ui_sensors_poll(void *data, Ecore_Thread *thread) {
break;
}
if (ecore_thread_check(thread)) return;
- usleep(250000);
+ gettimeofday(&te, NULL);
+ unsigned long interval = 250000 - (te.tv_usec - ts.tv_usec);
+ if (interval > 250000) interval = 250000;
+ usleep(interval);
}
}
}
@@ -367,7 +372,7 @@ _evisum_ui_sensors_poll_feedback_cb(void *data, Ecore_Thread *thread EINA_UNUSED
if (!entry) continue;
if (entry->seen) continue;
- system_sensor_thermal_free(s);
+ system_sensor_thermal_free(s);
entry->current_temp = temp;
_evisum_ui_sensors_history_add_sample(entry, temp);
_evisum_ui_sensors_history_legend_add(view, entry);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.