Skip to content

Commit f6b942b

Browse files
Restore Erlang/OTP 19.3 compatibility
erlang:ceil/1 is not available in 19.3. Part of rabbitmq/rabbitmq-management#575. [#157817330]
1 parent bda2834 commit f6b942b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_vhost.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ delete(VHostPath, ActingUser) ->
153153

154154
-spec await_running_on_all_nodes(rabbit_types:vhost(), integer()) -> ok | {error, timeout}.
155155
await_running_on_all_nodes(VHost, Timeout) ->
156-
Attempts = ceil(Timeout / ?AWAIT_SAMPLE_INTERVAL),
156+
Attempts = round(Timeout / ?AWAIT_SAMPLE_INTERVAL),
157157
await_running_on_all_nodes0(VHost, Attempts).
158158

159159
await_running_on_all_nodes0(_VHost, 0) ->

0 commit comments

Comments
 (0)