netstar pushed a commit to branch master.

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

commit 682d209b3d6f576b56a3fe26effa4ed04445b303
Author: Alastair Poole <nets...@gmail.com>
Date:   Mon Mar 29 07:36:41 2021 +0100

    proclist: indent.
---
 src/bin/ui/ui_process_list.c | 52 ++++++++++++++++++++++----------------------
 1 file changed, 26 insertions(+), 26 deletions(-)

diff --git a/src/bin/ui/ui_process_list.c b/src/bin/ui/ui_process_list.c
index eec7b95..9ccd3a4 100644
--- a/src/bin/ui/ui_process_list.c
+++ b/src/bin/ui/ui_process_list.c
@@ -996,33 +996,33 @@ _process_list_search_trim(Eina_List *list, Data *pd)
 
    EINA_LIST_FOREACH_SAFE(list, l, l_next, proc)
      {
-       if (_process_ignore(pd, proc))
-         {
-            proc_info_free(proc);
-            list = eina_list_remove_list(list, l);
-         }
+        if (_process_ignore(pd, proc))
+          {
+             proc_info_free(proc);
+             list = eina_list_remove_list(list, l);
+          }
         else
-         {
-            int64_t *cpu_time, id = proc->pid;
-
-            if ((cpu_time = eina_hash_find(pd->cpu_times, &id)))
-              {
-                 if (*cpu_time)
-                   proc->cpu_usage = (double) (proc->cpu_time - *cpu_time) /
-                                               pd->ui->proc.poll_delay;
-                 *cpu_time = proc->cpu_time;
-              }
-            else
-              {
-                 cpu_time = malloc(sizeof(int64_t));
-                 if (cpu_time)
-                   {
-                      *cpu_time = proc->cpu_time;
-                      eina_hash_add(pd->cpu_times, &id, cpu_time);
-                   }
-              }
-            _summary_total(pd, proc);
-         }
+          {
+             int64_t *cpu_time, id = proc->pid;
+
+             if ((cpu_time = eina_hash_find(pd->cpu_times, &id)))
+               {
+                  if (*cpu_time)
+                    proc->cpu_usage = (double) (proc->cpu_time - *cpu_time) /
+                                                pd->ui->proc.poll_delay;
+                  *cpu_time = proc->cpu_time;
+               }
+             else
+               {
+                  cpu_time = malloc(sizeof(int64_t));
+                  if (cpu_time)
+                    {
+                       *cpu_time = proc->cpu_time;
+                       eina_hash_add(pd->cpu_times, &id, cpu_time);
+                    }
+               }
+             _summary_total(pd, proc);
+          }
      }
 
     return list;

-- 


Reply via email to