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-05 18:08:59 +0100
commitbc32d443871d308e59a77b06277eefa741dca5cc (patch)
tree9c9c2f27c3ba8cb59d289438b145e4eb4a41e5de
parent284ff1529830723f794c4893720f52722a8503ea (diff)
downloadcouchdb-bc32d443871d308e59a77b06277eefa741dca5cc.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).