Skip to content
Browse files

Update failure count the right way.

This brings the two ways of reporting failure in line with each
other.

Closes #768.
  • Loading branch information...
1 parent b2ca4ce commit 528166dafaeb2f9aa2cdedd20d92d36d84b5e269 @steveklabnik steveklabnik committed Mar 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/resque.rb
View
2 lib/resque.rb
@@ -482,7 +482,7 @@ def info
:queues => queues.size,
:workers => workers.size.to_i,
:working => working.size,
- :failed => Stat[:failed],
+ :failed => Resque.redis.llen(:failed).to_i,
:servers => [redis_id],
:environment => ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
}

0 comments on commit 528166d

Please sign in to comment.
Something went wrong with that request. Please try again.