]> code.citadel.org Git - citadel.git/commitdiff
* stats now sorts its top 20 lists properly
authorMichael Hampton <io_error@uncensored.citadel.org>
Sat, 5 Jan 2002 04:51:36 +0000 (04:51 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sat, 5 Jan 2002 04:51:36 +0000 (04:51 +0000)
citadel/ChangeLog
citadel/stats.c

index 7368f1576934f18fdb53408e65abf03e7c6a6585..67763c1e31deb556b608abf5955a28a6e918e7f3 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 590.37  2002/01/05 04:51:36  error
+ * stats now sorts its top 20 lists properly
+
  Revision 590.36  2002/01/04 20:57:36  nbryant
  cygwin fix
 
@@ -3070,4 +3073,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
-
index 9ed10c33e58ebaff8759ddc9a7f656b9cbc6ca6a..3e3011d6ee6d584053075810a930b85cf83cf7c4 100644 (file)
@@ -313,7 +313,7 @@ int main(int argc, char **argv)
                printf("Calls Avg/Day Username\n");
                printf("----- ------- ------------------------------\n");
                fflush(stdout);
-               sortpipe = (FILE *) popen("sort |tail -20 |sort -r", "w");
+               sortpipe = (FILE *) popen("sort |tail -20 |sort -nr", "w");
                for (callptr = callers; callptr != NULL; callptr = callptr->next) {
                        fprintf(sortpipe, "%5d %7.2f %-30s\n",
                                callptr->Ctimescalled,
@@ -337,7 +337,7 @@ int main(int argc, char **argv)
                printf("P/C Ratio Username\n");
                printf("--------- ------------------------------\n");
                fflush(stdout);
-               sortpipe = (FILE *) popen("sort |tail -20 |sort -r", "w");
+               sortpipe = (FILE *) popen("sort |tail -20 |sort -nr", "w");