summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2018-03-05 16:09:00 +0100
committerJan Lehnardt <jan@apache.org>2018-03-06 09:20:24 +0100
commit0761b6adaedbad3b3dd287e3d45de50df013d30e (patch)
tree63cc06bee57dd6079f3cde5b80e2bc3f28be9fc9
parent5ef942afdc79f1b012f2a2d48f722ea50afca899 (diff)
downloadcouchdb-0761b6adaedbad3b3dd287e3d45de50df013d30e.tar.gz
fix: simplify config integer get
-rw-r--r--src/couch/src/couch_compaction_daemon.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/couch/src/couch_compaction_daemon.erl b/src/couch/src/couch_compaction_daemon.erl
index 59555f1ba..200c3fd76 100644
--- a/src/couch/src/couch_compaction_daemon.erl
+++ b/src/couch/src/couch_compaction_daemon.erl
@@ -152,8 +152,7 @@ compact_loop(Parent) ->
true ->
receive {Parent, have_config} -> ok end;
false ->
- PausePeriod = list_to_integer(
- config:get("compaction_daemon", "check_interval", "300")),
+ PausePeriod = config:get_integer("compaction_daemon", "check_interval", 3600),
ok = timer:sleep(PausePeriod * 1000)
end,
compact_loop(Parent).