From: hno <> Date: Sat, 1 Feb 2003 20:36:47 +0000 (+0000) Subject: date: 2003/01/31 05:12:53; author: wessels; state: Exp; lines: +2 -0 X-Git-Tag: SQUID_3_0_PRE1~413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0cd8f9950e2287d0ecc77e2c244bbb883688257;p=thirdparty%2Fsquid.git date: 2003/01/31 05:12:53; author: wessels; state: Exp; lines: +2 -0 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. --- diff --git a/src/store.cc b/src/store.cc index 8f94f14af6..1732640c5c 100644 --- a/src/store.cc +++ b/src/store.cc @@ -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",