From: wessels <> Date: Fri, 25 Oct 1996 23:34:55 +0000 (+0000) Subject: debug clean from M. Treacy X-Git-Tag: SQUID_3_0_PRE1~5580 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b83d4d8f1eeb5f0eda6bb2bfac8498faa061c48;p=thirdparty%2Fsquid.git debug clean from M. Treacy --- diff --git a/src/store.cc b/src/store.cc index 852834ef15..44025934f6 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.139 1996/10/25 03:44:53 wessels Exp $ + * $Id: store.cc,v 1.140 1996/10/25 17:34:55 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -2488,9 +2488,11 @@ storeInitHashValues(void) /* Calculate size of hash table. Target is an arbitrary 10 * objects per bucket (maximum currently 64k buckets). */ - i = Config.Swap.maxSize / AVG_OBJECT_SIZE / 10; + i = Config.Swap.maxSize / AVG_OBJECT_SIZE; debug(20, 1, "Swap maxSize %d, estimated %d objects\n", Config.Swap.maxSize, i); + i /= OBJECTS_PER_BUCKET; + debug(20, 1, "Target number of buckets: %d\n", i); /* ideally the full scan period should be configurable, for the * moment it remains at approximately 24 hours. */ @@ -2506,7 +2508,7 @@ storeInitHashValues(void) store_buckets = 65357, store_maintain_rate = 1; store_maintain_buckets = 1; - debug(20, 1, "Using %d Store buckets, maintain %d bucket%s per %d second%s\n", + debug(20, 1, "Using %d Store buckets, maintain %d bucket%s every %d second%s\n", store_buckets, store_maintain_buckets, store_maintain_buckets == 1 ? null_string : "s",