]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix refresh stats
authorwessels <>
Tue, 4 May 1999 02:37:49 +0000 (02:37 +0000)
committerwessels <>
Tue, 4 May 1999 02:37:49 +0000 (02:37 +0000)
   - show 0 entries too
   - put a new line after "total" and before FYI entries

src/refresh.cc

index 58eb38bc64a9f51fcae82de83b1ae88ac5c590ac..973d6f8377cfa146ab714918c9e0bda0c6ee1e59 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: refresh.cc,v 1.47 1999/01/19 23:18:01 wessels Exp $
+ * $Id: refresh.cc,v 1.48 1999/05/03 20:37:49 wessels Exp $
  *
  * DEBUG: section 22    Refresh Calculation
  * AUTHOR: Harvest Derived
@@ -328,7 +328,6 @@ refreshCountsStats(StoreEntry * sentry, struct RefreshCounts *rc)
     storeAppendPrintf(sentry, "Category\tCount\t%%Total\n");
 
 #define refreshCountsStatsEntry(name) { \
-    if (rc->name || !strcmp(#name, "total")) \
        storeAppendPrintf(sentry, "%s\t%6d\t%6.2f\n", \
            #name, rc->name, xpercent(rc->name, tot)); \
     sum += rc->name; \
@@ -350,6 +349,7 @@ refreshCountsStats(StoreEntry * sentry, struct RefreshCounts *rc)
     tot = sum;                 /* paranoid: "total" line shows 100% if we forgot nothing */
     refreshCountsStatsEntry(total);
     /* maybe counters */
+    storeAppendPrintf(sentry, "\n");
     refreshCountsStatsEntry(request_reload_ignore_maybe);
     refreshCountsStatsEntry(response_lmt_future_maybe);
 }