]> granicus.if.org Git - ejabberd/commitdiff
Fix previous commit
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 30 Jul 2019 10:40:40 +0000 (13:40 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Tue, 30 Jul 2019 10:40:40 +0000 (13:40 +0300)
src/mod_stream_mgmt.erl

index e086b29cc59c5f8cc4271a3f2ed451dff46ba4a0..45c30e161d36910b6569e0468f81b590c74569d9 100644 (file)
@@ -370,8 +370,8 @@ handle_enable(#{mgmt_timeout := DefaultTimeout,
              #sm_enable{resume = Resume, max = Max}) ->
     Timeout = if Resume == false ->
                      0;
-                Max /= undefined, Max > 0, Max =< MaxTimeout ->
-                     Max;
+                Max /= undefined, Max > 0, Max*1000 =< MaxTimeout ->
+                     Max*1000;
                 true ->
                      DefaultTimeout
              end,