mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
fixing small mistake; adding Nattfodd <Nattfodd@gmail.com> to AUTHORS
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@339 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
b8e385f663
commit
a3212822df
3
AUTHORS
3
AUTHORS
@ -101,6 +101,9 @@ Lucas Brutschy <lbrutschy at users dot sourceforge dot net>
|
||||
Moncelier Camille <pixdamix at users dot sourceforge dot net>
|
||||
METAR patch
|
||||
|
||||
Nattfodd <Nattfodd@gmail.com>
|
||||
Fixed top_mem dupes
|
||||
|
||||
nathanj439 <nathanj439 at users dot sourceforge dot net>
|
||||
MPD time fix
|
||||
|
||||
|
@ -477,6 +477,7 @@ inline void process_find_top(struct process **cpu, struct process **mem)
|
||||
sizeof(struct process) * sorttmp_size);
|
||||
}
|
||||
qsort(sorttmp, i, sizeof(struct process *), comparemem);
|
||||
sorttmp_size = i;
|
||||
for (i = 0, j = 0; i < sorttmp_size && j < 10; i++) {
|
||||
if (j == 0 || sorttmp[i]->totalmem != mem[j-1]->totalmem
|
||||
|| strncmp(sorttmp[i]->name, mem[j-1]->name,128)) {
|
||||
|
Loading…
Reference in New Issue
Block a user