From: Brenden Matthews Date: Thu, 29 Sep 2005 03:40:12 +0000 (+0000) Subject: fixing small mistake; adding Nattfodd to AUTHORS X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=a3212822df576e7cd1c8c0d816570ff683770483;p=monky fixing small mistake; adding Nattfodd to AUTHORS git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@339 7f574dfc-610e-0410-a909-a81674777703 --- diff --git a/AUTHORS b/AUTHORS index 172d9ce..5c5fe39 100644 --- a/AUTHORS +++ b/AUTHORS @@ -101,6 +101,9 @@ Lucas Brutschy Moncelier Camille METAR patch +Nattfodd + Fixed top_mem dupes + nathanj439 MPD time fix diff --git a/src/top.c b/src/top.c index 5fe3684..af87e22 100644 --- 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)) {