diff options
author | Jan Lehnardt <jan@apache.org> | 2018-03-05 16:09:00 +0100 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2018-03-05 18:08:59 +0100 |
commit | bc32d443871d308e59a77b06277eefa741dca5cc (patch) | |
tree | 9c9c2f27c3ba8cb59d289438b145e4eb4a41e5de | |
parent | 284ff1529830723f794c4893720f52722a8503ea (diff) | |
download | couchdb-bc32d443871d308e59a77b06277eefa741dca5cc.tar.gz |
fix: simplify config integer get
-rw-r--r-- | src/couch/src/couch_compaction_daemon.erl | 3 |
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). |