diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2018-05-30 15:52:05 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2018-05-30 15:52:05 +0300 |
| commit | 4e4624208fd30bac46c280caca7c0f12a2c4aa6b (patch) | |
| tree | d44998b2c83e7d2873dae642bc4761735257b316 | |
| parent | 00c56e68ecefec7c7b6160d0ad17e0eee58ed8cd (diff) | |
| download | rabbitmq-server-git-4e4624208fd30bac46c280caca7c0f12a2c4aa6b.tar.gz | |
Erlang/OTP 19.3 compatibility
`erlang:floor/1` is not available in 19.3.
[#156729133]
| -rw-r--r-- | src/rabbit_nodes.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_nodes.erl b/src/rabbit_nodes.erl index d3ec06b05a..e6131265b0 100644 --- a/src/rabbit_nodes.erl +++ b/src/rabbit_nodes.erl @@ -95,7 +95,7 @@ running_count() -> length(all_running()). -spec await_running_count(integer(), integer()) -> 'ok' | {'error', atom()}. await_running_count(TargetCount, Timeout) -> - Retries = floor(Timeout/?SAMPLING_INTERVAL), + Retries = round(Timeout/?SAMPLING_INTERVAL), await_running_count_with_retries(TargetCount, Retries). await_running_count_with_retries(1, _Retries) -> ok; |
