fixing small mistake; adding Nattfodd <Nattfodd@gmail.com> to AUTHORS
authorBrenden Matthews <brenden1@rty.ca>
Thu, 29 Sep 2005 03:40:12 +0000 (03:40 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Thu, 29 Sep 2005 03:40:12 +0000 (03:40 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@339 7f574dfc-610e-0410-a909-a81674777703

AUTHORS
src/top.c

diff --git a/AUTHORS b/AUTHORS
index 172d9ce..5c5fe39 100644 (file)
--- a/AUTHORS
+++ b/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
 
index 5fe3684..af87e22 100644 (file)
--- a/src/top.c
+++ b/src/top.c
@@ -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)) {