proclist: indent.
This commit is contained in:
parent
b51675cde2
commit
682d209b3d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue