From 9ee8c7f4e72fd8dcefaf3cd925ba08a801ad9ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Sepp=C3=A4l=C3=A4?= Date: Sun, 7 Oct 2007 08:46:34 +0000 Subject: [PATCH] Fix sorting of most active pids --- statistics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/statistics.c b/statistics.c index 2580d17..982cfc9 100644 --- a/statistics.c +++ b/statistics.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: statistics.c,v 1.4 2007/10/06 22:15:02 rahrenbe Exp $ + * $Id: statistics.c,v 1.5 2007/10/07 08:46:34 ajhseppa Exp $ */ #include "common.h" @@ -67,9 +67,9 @@ int SortFunc(const void* data1, const void* data2) pidStruct *comp1 = (pidStruct*)data1; pidStruct *comp2 = (pidStruct*)data2; if (comp1->DataAmount > comp2->DataAmount) - return 1; - if (comp1->DataAmount < comp2->DataAmount) return -1; + if (comp1->DataAmount < comp2->DataAmount) + return 1; return 0; }