summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Lewandowski <k.lewandowsk@samsung.com>2019-08-30 08:38:50 +0200
committerKarol Lewandowski <k.lewandowsk@samsung.com>2019-09-03 15:42:37 +0200
commitc0a138fc2af42a4f109a8f79d51712f4dc9b3255 (patch)
treef37948346e9e36bed8f70fec1cd012bd1819b6fd
parent8aa6d1dcd52b4aa8b6629cc08071a22e8ae413f5 (diff)
downloadcrash-worker-c0a138fc2af42a4f109a8f79d51712f4dc9b3255.tar.gz
crash-worker-c0a138fc2af42a4f109a8f79d51712f4dc9b3255.tar.bz2
crash-worker-c0a138fc2af42a4f109a8f79d51712f4dc9b3255.zip
config: Fix invalid default setting for MaxRetentionSec
Change-Id: I809d86fdd0242c2c280b4db4eef009cadfd4652b
-rw-r--r--src/shared/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/config.c b/src/shared/config.c
index f8451d9..3154752 100644
--- a/src/shared/config.c
+++ b/src/shared/config.c
@@ -80,7 +80,7 @@ bool config_init(config_t *c, const char *const path)
c->system_max_use = GET(int, "SystemMaxUse", SYSTEM_MAX_USE);
c->system_keep_free = GET(int, "SystemKeepFree", SYSTEM_KEEP_FREE);
- c->max_retention_sec = GET(int, "MaxRetentionSec", SYSTEM_MAX_USE);
+ c->max_retention_sec = GET(int, "MaxRetentionSec", MAX_RETENTION_SEC);
c->max_crash_dump = GET(int, "MaxCrashDump", MAX_CRASH_DUMP);
c->dump_core = GET(boolean, "DumpCore", DUMP_CORE);
c->allow_zip = GET(boolean, "AllowZip", ALLOW_ZIP);