proclist: indent.

This commit is contained in:
Alastair Poole 2021-03-29 07:36:41 +01:00
parent b51675cde2
commit 682d209b3d
1 changed files with 25 additions and 25 deletions

View File

@ -996,33 +996,33 @@ _process_list_search_trim(Eina_List *list, Data *pd)
EINA_LIST_FOREACH_SAFE(list, l, l_next, proc) EINA_LIST_FOREACH_SAFE(list, l, l_next, proc)
{ {
if (_process_ignore(pd, proc)) if (_process_ignore(pd, proc))
{ {
proc_info_free(proc); proc_info_free(proc);
list = eina_list_remove_list(list, l); list = eina_list_remove_list(list, l);
} }
else else
{ {
int64_t *cpu_time, id = proc->pid; int64_t *cpu_time, id = proc->pid;
if ((cpu_time = eina_hash_find(pd->cpu_times, &id))) if ((cpu_time = eina_hash_find(pd->cpu_times, &id)))
{ {
if (*cpu_time) if (*cpu_time)
proc->cpu_usage = (double) (proc->cpu_time - *cpu_time) / proc->cpu_usage = (double) (proc->cpu_time - *cpu_time) /
pd->ui->proc.poll_delay; pd->ui->proc.poll_delay;
*cpu_time = proc->cpu_time; *cpu_time = proc->cpu_time;
} }
else else
{ {
cpu_time = malloc(sizeof(int64_t)); cpu_time = malloc(sizeof(int64_t));
if (cpu_time) if (cpu_time)
{ {
*cpu_time = proc->cpu_time; *cpu_time = proc->cpu_time;
eina_hash_add(pd->cpu_times, &id, cpu_time); eina_hash_add(pd->cpu_times, &id, cpu_time);
} }
} }
_summary_total(pd, proc); _summary_total(pd, proc);
} }
} }
return list; return list;