Skip to content

Commit a96ad25

Browse files
Merge pull request #9488 from rabbitmq/mergify/bp/v3.12.x/pr-9485
Fix OTP 27 float match warning (backport #9485)
2 parents dd339c7 + ed19af2 commit a96ad25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_amqqueue_process.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ prioritise_cast(Msg, _Len, State) ->
12671267

12681268
consumer_bias(#q{backing_queue = BQ, backing_queue_state = BQS}, Low, High) ->
12691269
case BQ:msg_rates(BQS) of
1270-
{0.0, _} -> Low;
1270+
{Ingress, _} when Ingress =:= +0.0 orelse Ingress =:= -0.0 -> Low;
12711271
{Ingress, Egress} when Egress / Ingress < ?CONSUMER_BIAS_RATIO -> High;
12721272
{_, _} -> Low
12731273
end.

0 commit comments

Comments
 (0)