mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +00:00
Don't do unneeded sp_acopy() calls
This commit is contained in:
parent
b4f06b7547
commit
04623066d7
10
src/top.c
10
src/top.c
@ -561,7 +561,11 @@ void process_find_top(struct process **cpu, struct process **mem,
|
||||
}
|
||||
cur_proc = cur_proc->next;
|
||||
}
|
||||
sp_acopy(spc_head, cpu, MAX_SP);
|
||||
sp_acopy(spm_head, mem, MAX_SP);
|
||||
sp_acopy(spt_head, time, MAX_SP);
|
||||
|
||||
if (top_cpu)
|
||||
sp_acopy(spc_head, cpu, MAX_SP);
|
||||
if (top_mem)
|
||||
sp_acopy(spm_head, mem, MAX_SP);
|
||||
if (top_time)
|
||||
sp_acopy(spt_head, time, MAX_SP);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user