]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- increased min delays for digest updating/regenerating
authorrousskov <>
Thu, 9 Apr 1998 04:52:38 +0000 (04:52 +0000)
committerrousskov <>
Thu, 9 Apr 1998 04:52:38 +0000 (04:52 +0000)
src/peer_digest.cc
src/store_digest.cc

index 29e062609e31d4f8f3bc3da5cb1e3052d2d249ce..2cc6ae3ba475b4e2dd6087afa3e4637ccb5b3329 100644 (file)
@@ -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)
index 71e4e2c76a835b5dfc26092e3125e479e84a49b6..6373dcd714fb8e874b24233f045bc0b5a3ac3594 100644 (file)
@@ -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 */