lib/hornetq/client/message_handler.rb in jruby-hornetq-0.4.0 vs lib/hornetq/client/message_handler.rb in jruby-hornetq-0.5.0.alpha

- old
+ new

@@ -51,10 +51,10 @@ # Note: These statistics are only useful if the queue is pre-loaded with messages # since the timer start immediately and stops on the last message received def statistics raise "First call Consumer::on_message with :statistics=>true before calling MessageConsumer::statistics()" unless @message_count duration =(@last_time || Time.now) - @start_time - { + { :count => @message_count, :duration => duration, :messages_per_second => (@message_count/duration).to_i } end \ No newline at end of file