]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Adjust refresh_pattern min-age to make 0 mean 0, not 1 second
authorhno <>
Thu, 24 May 2007 07:45:03 +0000 (07:45 +0000)
committerhno <>
Thu, 24 May 2007 07:45:03 +0000 (07:45 +0000)
src/refresh.cc

index 8f3b8f75d7c24e829bee890582ab4f13b1de2d1a..343c47c604b6c843d7f6c197e9c318fcd06fffa1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: refresh.cc,v 1.75 2007/04/30 16:56:09 wessels Exp $
+ * $Id: refresh.cc,v 1.76 2007/05/24 01:45:03 hno Exp $
  *
  * DEBUG: section 22    Refresh Calculation
  * AUTHOR: Harvest Derived
@@ -216,13 +216,13 @@ refreshStaleness(const StoreEntry * entry, time_t check_time, time_t age, const
      * If we are here, staleness is determined by the refresh_pattern
      * configured minimum age.
      */
-    if (age <= R->min) {
-        debugs(22, 3, "FRESH: age " << age << " <= min " << R->min);
+    if (age < R->min) {
+        debugs(22, 3, "FRESH: age " << age << " < min " << R->min);
         sf->min = true;
         return -1;
     }
 
-    debugs(22, 3, "STALE: age " << age << " > min " << R->min);
+    debugs(22, 3, "STALE: age " << age << " >= min " << R->min);
     return (age - R->min);
 }