This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 0761b6adaedbad3b3dd287e3d45de50df013d30e
Author: Jan Lehnardt <j...@apache.org>
AuthorDate: Mon Mar 5 16:09:00 2018 +0100

    fix: simplify config integer get
---
 src/couch/src/couch_compaction_daemon.erl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/couch/src/couch_compaction_daemon.erl 
b/src/couch/src/couch_compaction_daemon.erl
index 59555f1..200c3fd 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).

-- 
To stop receiving notification emails like this one, please contact
j...@apache.org.

Reply via email to