]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Merge in Leeann Bent's readahead gap fix from bug #636.
authorrobertc <>
Wed, 23 Jul 2003 16:12:33 +0000 (16:12 +0000)
committerrobertc <>
Wed, 23 Jul 2003 16:12:33 +0000 (16:12 +0000)
Keywords:

The readahead policy checks suffered from a scale problem.

src/MemObject.cc

index 6f05663826940f1b3924eb2d23c4c2b14901394f..cc51c5bd92b1a9354805465ca7bd1010ef190838 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: MemObject.cc,v 1.9 2003/06/26 12:51:57 robertc Exp $
+ * $Id: MemObject.cc,v 1.10 2003/07/23 10:12:33 robertc Exp $
  *
  * DEBUG: section 19    Store Memory Primitives
  * AUTHOR: Robert Collins
@@ -291,7 +291,7 @@ MemObject::lowestMemReaderOffset() const
 bool
 MemObject::readAheadPolicyCanRead() const
 {
-    return (size_t)endOffset() - getReply()->hdr_sz < lowestMemReaderOffset() + Config.readAheadGap;
+    return (size_t)endOffset() - getReply()->hdr_sz < lowestMemReaderOffset() + (Config.readAheadGap << 10);
 }
 
 void