]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
change 'you've run out of file numbers' condition.
authorwessels <>
Thu, 28 May 1998 00:34:57 +0000 (00:34 +0000)
committerwessels <>
Thu, 28 May 1998 00:34:57 +0000 (00:34 +0000)
src/filemap.cc

index c4c0291d2be7c449d96dff5d59d3a760ef7dd4ea..7e524d7394b814a36692cf474785463e059590dd 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: filemap.cc,v 1.28 1998/05/22 23:44:04 wessels Exp $
+ * $Id: filemap.cc,v 1.29 1998/05/27 18:34:57 wessels Exp $
  *
  * DEBUG: section 8     Swap File Bitmap
  * AUTHOR: Harvest Derived
@@ -149,7 +149,7 @@ file_map_bit_set(fileMap * fm, int file_number)
        debug(8, 0) ("WARNING: filemap utilization at %d%%\n"
            "\tConsider decreasing store_avg_object_size in squid.conf\n",
            percent(fm->n_files_in_map, fm->max_n_files));
-    } else if (fm->n_files_in_map > (fm->max_n_files - 100)) {
+    } else if (fm->n_files_in_map == fm->max_n_files) {
        fatal_dump("You've run out of swap file numbers.");
     }
     return (file_number);