From fa1c007de224caac60887959dd5fbe6b73c4484a Mon Sep 17 00:00:00 2001 From: Doug Barth Date: Thu, 29 Jan 2009 23:11:53 -0600 Subject: [PATCH] Assume target queue exists when getting status. If the queue does not exist, the command will fail with an error. --- bin/amqp-statq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/amqp-statq b/bin/amqp-statq index 4a68b60..33c90b9 100755 --- a/bin/amqp-statq +++ b/bin/amqp-statq @@ -15,7 +15,7 @@ class QueueStatCommand < AmqpUtils::Command @queues = ARGV @queues.each do |queue| - MQ.new.queue(queue).status do |size, consumers| + MQ.new.queue(queue, :passive => true).status do |size, consumers| puts "Queue <#{queue}>: #{size} message(s), #{consumers} consumer(s)" @queues.delete(queue)