summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-06 14:49:15 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-06 14:49:15 +0000
commit49399dbb207da68d97a373ace21db6865899186b (patch)
tree8e6796a562ebec48d24843fac86a48ab5d79cbb6
parent3e063da34ba39f0a321fc6ca691ff357f30cb163 (diff)
downloadrabbitmq-server-bug26056.tar.gz
Start the consumer utilisation average at active 100% of the time, since when we first add a first consumer it will not be blocked.bug26056
-rw-r--r--src/rabbit_queue_consumers.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_queue_consumers.erl b/src/rabbit_queue_consumers.erl
index c9540da8..177cb9e8 100644
--- a/src/rabbit_queue_consumers.erl
+++ b/src/rabbit_queue_consumers.erl
@@ -97,7 +97,7 @@
%%----------------------------------------------------------------------------
new() -> #state{consumers = priority_queue:new(),
- use = {inactive, now_micros(), 0, 0.0}}.
+ use = {active, now_micros(), 1.0}}.
max_active_priority(#state{consumers = Consumers}) ->
priority_queue:highest(Consumers).