]> granicus.if.org Git - apache/commitdiff
Way too busy today.. last commit was wrong in two ways. First, 1KB is 1024
authorBill Stoddard <stoddard@apache.org>
Fri, 19 Jul 2002 02:24:26 +0000 (02:24 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 19 Jul 2002 02:24:26 +0000 (02:24 +0000)
bytes, not 1000 bytes. Second, max_cache_size is already represented in bytes.
Time for a vacation.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96118 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_mem_cache.c

index fc2c158e3d4e47d14fd9a555f1cc069b7ea2f15b..f3f9c2bc2dfd9723153b44bde1a9a24b4b8dfa17 100644 (file)
@@ -1008,7 +1008,7 @@ static int mem_cache_post_config(apr_pool_t *p, apr_pool_t *plog,
                      "MCacheMaxObjectSize must be greater than MCacheMinObjectSize");
         return DONE;
     }
-    if (sconf->max_cache_object_size >= sconf->max_cache_size*1000) {
+    if (sconf->max_cache_object_size >= sconf->max_cache_size) {
         ap_log_error(APLOG_MARK, APLOG_CRIT, 0, s,
                      "MCacheSize must be greater than MCacheMaxObjectSize");
         return DONE;