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:
commit
e58406bd97
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue