From f57c0c4891559a75792077c5df1e514bf5804c1d Mon Sep 17 00:00:00 2001 From: "Michael D. Reiley" Date: Sat, 9 Jul 2011 20:41:41 -0700 Subject: [PATCH] Typos in main.cpp --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 962b20a..8a4d361 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -124,7 +124,9 @@ static ClientValues* parseConfig(const char* filename) conf->cache_enabled = false; } - if (!parameters["cache.ttl"].empty()) { + if (parameters["cache.ttl"].empty()) + conf->cache_ttl = CACHE_EMPTY_TTL; + else { if (atoi(parameters["cache.ttl"].c_str()) == 0) conf->cache_enabled = 0; conf->cache_ttl = atoi(parameters["cache.ttl"].c_str()); @@ -219,7 +221,7 @@ static bool parseCommandLine(int argc, char* argv[], ClientValues* conf) } if (cmd.check("--cache-size")) { - conf->cache_ttl = atoi(cmd.get("--cache-size").c_str()); + conf->cache_size = atoi(cmd.get("--cache-size").c_str()); if (conf->cache_size == 0) conf->cache_enabled = false; } -- 2.11.4.GIT