Use econf:timeout/2

This commit is contained in:
Evgeny Khramtsov 2019-07-16 18:02:32 +03:00
parent f85488583c
commit 76d4c178a7
2 changed files with 2 additions and 2 deletions

View File

@ -1178,7 +1178,7 @@ mod_opt_type(hosts) ->
mod_opt_type(queue_type) ->
econf:queue_type();
mod_opt_type(hibernation_timeout) ->
econf:non_neg_int(infinity).
econf:timeout(minute, infinity).
mod_options(Host) ->
[{access, all},

View File

@ -4707,7 +4707,7 @@ reset_hibernate_timer(State) ->
{infinity, _} ->
none;
{Timeout, 0} ->
p1_fsm:send_event_after(timer:minutes(Timeout), hibernate);
p1_fsm:send_event_after(Timeout, hibernate);
_ ->
none
end,