Skip to content

Commit 313c52b

Browse files
Erlang/OTP 19.3 compatibility
`erlang:floor/1` is not available in 19.3. [#156729133] (cherry picked from commit 4e46242)
1 parent 50bb96c commit 313c52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_nodes.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ running_count() -> length(all_running()).
9595
-spec await_running_count(integer(), integer()) -> 'ok' | {'error', atom()}.
9696

9797
await_running_count(TargetCount, Timeout) ->
98-
Retries = floor(Timeout/?SAMPLING_INTERVAL),
98+
Retries = round(Timeout/?SAMPLING_INTERVAL),
9999
await_running_count_with_retries(TargetCount, Retries).
100100

101101
await_running_count_with_retries(1, _Retries) -> ok;

0 commit comments

Comments
 (0)