]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
config: Adjust the default cache size limit to 5 Gbytes
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 25 Jul 2011 21:56:31 +0000 (23:56 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 26 Jul 2011 20:11:45 +0000 (22:11 +0200)
conf.c
test/test_conf.c

diff --git a/conf.c b/conf.c
index 5d6b802b77008f47955f5ace460a04e08d7ccb26..cd90fce5ff703b44faf0f0898bb6a06972faef9e 100644 (file)
--- 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;
index 3d687a0aee6425ef570f5731725b8262642ff97c..53872f346f67318f90a4dda2a747be38dae6dadc 100644 (file)
@@ -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);