You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2018/03/05 16:10:22 UTC

[couchdb] 02/05: fix: simplify config integer get

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

jan pushed a commit to branch fix/compaction-daemon
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 844cdca32e788e4dd5f77b6dd83db341d6ad3114
Author: Jan Lehnardt <ja...@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..21fb5d9 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", "300"),
         ok = timer:sleep(PausePeriod * 1000)
     end,
     compact_loop(Parent).

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