]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
date: 2003/01/31 05:12:53; author: wessels; state: Exp; lines: +2 -0
authorhno <>
Sat, 1 Feb 2003 20:36:47 +0000 (20:36 +0000)
committerhno <>
Sat, 1 Feb 2003 20:36:47 +0000 (20:36 +0000)
store_check_cachable_hist.no.non_get is only incremented if
CACHE_ALL_METHODS is defined (which never is).  Rather than always
print 0 for non_get in store_check_cachable_stats, let's also
wrap that output in #if CACHE_ALL_METHODS.

src/store.cc

index 8f94f14af60ee6240950ad9f3b59819f3607f3cb..1732640c5c61993a6467572b7433466ef96ca343 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.554 2003/01/23 00:37:26 robertc Exp $
+ * $Id: store.cc,v 1.555 2003/02/01 13:36:47 hno Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -787,8 +787,10 @@ storeCheckCachableStats(StoreEntry * sentry)
 {
     storeAppendPrintf(sentry, "Category\t Count\n");
 
+#if CACHE_ALL_METHODS
     storeAppendPrintf(sentry, "no.non_get\t%d\n",
        store_check_cachable_hist.no.non_get);
+#endif
     storeAppendPrintf(sentry, "no.not_entry_cachable\t%d\n",
        store_check_cachable_hist.no.not_entry_cachable);
     storeAppendPrintf(sentry, "no.release_request\t%d\n",