Change the type of 'mqtt.broker.sys_interval' to ms duration

This commit is contained in:
Feng Lee 2018-01-04 16:09:10 +08:00
parent 3a39706d84
commit 86fc80b983
1 changed files with 2 additions and 2 deletions

View File

@ -105,9 +105,9 @@ datetime() ->
io_lib:format(
"~4..0w-~2..0w-~2..0w ~2..0w:~2..0w:~2..0w", [Y, M, D, H, MM, S])).
%% @doc Start a tick timer
%% @doc Start a tick timer.
start_tick(Msg) ->
start_tick(timer:seconds(emqttd:env(broker_sys_interval, 60)), Msg).
start_tick(emqttd:env(broker_sys_interval, 60000), Msg).
start_tick(0, _Msg) ->
undefined;