From 2b68727b6e4b602f4a3fa0b17f2ba59936e8a35e Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Sat, 9 May 2020 00:41:53 +0100 Subject: [PATCH] ui: ... :| --- src/bin/ui.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/bin/ui.c b/src/bin/ui.c index 86d5196..4f31d7e 100644 --- a/src/bin/ui.c +++ b/src/bin/ui.c @@ -1136,17 +1136,16 @@ static void _process_list(void *data, Ecore_Thread *thread) { Ui *ui; - int duration, delay; + int delay; delay = 1; - duration = POLL_ONE_SEC / 2; ui = data; while (1) { ecore_thread_feedback(thread, ui); - for (int i = 0; i < delay * duration; i++) + for (int i = 0; i < delay * POLL_ONE_SEC; i++) { if (ecore_thread_check(thread)) return; @@ -1161,12 +1160,6 @@ _process_list(void *data, Ecore_Thread *thread) if (ui->ready) { delay = ui->poll_delay; - duration = POLL_ONE_SEC; - } - else - { - delay = 1; - duration = POLL_ONE_SEC / 2; } } }