From: Joel Rosdahl Date: Mon, 25 Jul 2011 21:56:31 +0000 (+0200) Subject: config: Adjust the default cache size limit to 5 Gbytes X-Git-Tag: v3.2~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=849766f72f593878ab8bdcba1a15be40a8a3beb9;p=thirdparty%2Fccache.git config: Adjust the default cache size limit to 5 Gbytes --- diff --git a/conf.c b/conf.c index 5d6b802b7..cd90fce5f 100644 --- a/conf.c +++ b/conf.c @@ -426,7 +426,7 @@ conf_create(void) conf->hash_dir = false; conf->log_file = x_strdup(""); conf->max_files = 0; - conf->max_size = 1000 * 1000 * 1000; + conf->max_size = (uint64_t)5 * 1000 * 1000 * 1000; conf->path = x_strdup(""); conf->prefix_command = x_strdup(""); conf->read_only = false; diff --git a/test/test_conf.c b/test/test_conf.c index 3d687a0ae..53872f346 100644 --- a/test/test_conf.c +++ b/test/test_conf.c @@ -53,7 +53,7 @@ TEST(conf_create) CHECK(!conf->hash_dir); CHECK_STR_EQ("", conf->log_file); CHECK_INT_EQ(0, conf->max_files); - CHECK_INT_EQ(1000 * 1000 * 1000, conf->max_size); + CHECK_INT_EQ((uint64_t)5 * 1000 * 1000 * 1000, conf->max_size); CHECK_STR_EQ("", conf->path); CHECK_STR_EQ("", conf->prefix_command); CHECK(!conf->read_only);