From: Bill Stoddard Date: Fri, 19 Jul 2002 02:24:26 +0000 (+0000) Subject: Way too busy today.. last commit was wrong in two ways. First, 1KB is 1024 X-Git-Tag: 2.0.40~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69a3a7f8c7eeddf8c102fa24a81974f60f60dc79;p=apache Way too busy today.. last commit was wrong in two ways. First, 1KB is 1024 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 --- diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index fc2c158e3d..f3f9c2bc2d 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -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;