From a0cd8f9950e2287d0ecc77e2c244bbb883688257 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sat, 1 Feb 2003 20:36:47 +0000 Subject: [PATCH] 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. --- src/store.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- 2.47.3