From 849766f72f593878ab8bdcba1a15be40a8a3beb9 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 25 Jul 2011 23:56:31 +0200 Subject: [PATCH] config: Adjust the default cache size limit to 5 Gbytes --- conf.c | 2 +- test/test_conf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.3