1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #204 from aselder/master

Use Inject instead of Sum to compute queue backlog size
This commit is contained in:
Mike Perham 2012-05-18 15:27:16 -07:00
commit e58406bd97

View file

@ -5,7 +5,7 @@
p Failed: #{failed} p Failed: #{failed}
p Busy Workers: #{workers.size} p Busy Workers: #{workers.size}
p Retries Pending: #{retry_count} p Retries Pending: #{retry_count}
p Queue Backlog: #{queues.map{|q,size| size}.sum} p Queue Backlog: #{queues.values.inject(0){|memo, val| memo + val}}
.tabbable .tabbable
ul.nav.nav-tabs ul.nav.nav-tabs