From: rousskov <> Date: Thu, 9 Apr 1998 04:52:38 +0000 (+0000) Subject: - increased min delays for digest updating/regenerating X-Git-Tag: SQUID_3_0_PRE1~3551 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef4317c89322408bf30b19bd5e3cc0de4391f01a;p=thirdparty%2Fsquid.git - increased min delays for digest updating/regenerating --- diff --git a/src/peer_digest.cc b/src/peer_digest.cc index 29e062609e..2cc6ae3ba4 100644 --- a/src/peer_digest.cc +++ b/src/peer_digest.cc @@ -1,6 +1,6 @@ /* - * $Id: peer_digest.cc,v 1.1 1998/04/08 22:48:08 rousskov Exp $ + * $Id: peer_digest.cc,v 1.2 1998/04/08 22:52:38 rousskov Exp $ * * DEBUG: section 72 Peer Digest Routines * AUTHOR: Alex Rousskov @@ -50,7 +50,7 @@ static int peerDigestUpdateMask(peer *peer, int offset, const char *buf, int siz #define StoreDigestCBlockSize sizeof(StoreDigestCBlock) /* min interval for requesting digests from the same peer */ -static const time_t PeerDigestRequestMinGap = 1 * 60; /* seconds */ +static const time_t PeerDigestRequestMinGap = 15 * 60; /* seconds */ void peerDigestInit(peer *p) diff --git a/src/store_digest.cc b/src/store_digest.cc index 71e4e2c76a..6373dcd714 100644 --- a/src/store_digest.cc +++ b/src/store_digest.cc @@ -1,5 +1,5 @@ /* - * $Id: store_digest.cc,v 1.5 1998/04/08 22:51:17 rousskov Exp $ + * $Id: store_digest.cc,v 1.6 1998/04/08 22:52:38 rousskov Exp $ * * DEBUG: section 71 Store Digest Manager * AUTHOR: Alex Rousskov @@ -48,9 +48,9 @@ typedef struct { */ /* how often we want to rebuild the digest, seconds */ -static const time_t StoreDigestRebuildPeriod = 6 * 60; +static const time_t StoreDigestRebuildPeriod = 60 * 60; /* how often we want to rewrite the digest, seconds */ -static const time_t StoreDigestRewritePeriod = 6 * 60; +static const time_t StoreDigestRewritePeriod = 60 * 60; /* how many bytes to swap out at a time */ static const int StoreDigestSwapOutChunkSize = SM_PAGE_SIZE; /* portion (0,1] of a hash table to be rescanned at a time */