diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2018-05-26 16:59:05 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2018-05-26 16:59:05 +0300 |
| commit | 1e97bce7cdf0b7e55198ebddaf910207c9bbf158 (patch) | |
| tree | a79123aaedf170210c0978661c41ad22c3e3abd1 | |
| parent | 0becb6bf46facd60705c4697e0f59ef71d0d0f1a (diff) | |
| download | rabbitmq-server-git-1e97bce7cdf0b7e55198ebddaf910207c9bbf158.tar.gz | |
Restore Erlang/OTP 19.3 compatibility
erlang:ceil/1 is not available in 19.3.
Part of rabbitmq/rabbitmq-management#575.
[#157817330]
| -rw-r--r-- | src/rabbit_vhost.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_vhost.erl b/src/rabbit_vhost.erl index 7360f8bc95..e97af7a757 100644 --- a/src/rabbit_vhost.erl +++ b/src/rabbit_vhost.erl @@ -153,7 +153,7 @@ delete(VHostPath, ActingUser) -> -spec await_running_on_all_nodes(rabbit_types:vhost(), integer()) -> ok | {error, timeout}. await_running_on_all_nodes(VHost, Timeout) -> - Attempts = ceil(Timeout / ?AWAIT_SAMPLE_INTERVAL), + Attempts = round(Timeout / ?AWAIT_SAMPLE_INTERVAL), await_running_on_all_nodes0(VHost, Attempts). await_running_on_all_nodes0(_VHost, 0) -> |
