netstar pushed a commit to branch master.

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

commit 2b68727b6e4b602f4a3fa0b17f2ba59936e8a35e
Author: Alastair Poole <nets...@gmail.com>
Date:   Sat May 9 00:41:53 2020 +0100

    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;
           }
      }
 }

-- 


Reply via email to