mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix #to_i fix.
This commit is contained in:
parent
c5d77cc82c
commit
b410905c5e
3 changed files with 2 additions and 3 deletions
1
TODO.md
1
TODO.md
|
@ -1,4 +1,3 @@
|
|||
- monitoring stats
|
||||
- resque-ui-esque web ui
|
||||
- graceful shutdown (ideally Celluloid will provide this)
|
||||
- monit/god/etc example scripts
|
||||
|
|
|
@ -82,7 +82,7 @@ module Sidekiq
|
|||
@parser = OptionParser.new do |o|
|
||||
o.on "-q", "--queue QUEUE,WEIGHT", "Queue to process, with optional weight" do |arg|
|
||||
(q, weight) = arg.split(",")
|
||||
(weight || 1).times do
|
||||
(weight || 1).to_i.times do
|
||||
@options[:queues] << q
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Sidekiq
|
|||
def initialize(options={})
|
||||
log "Booting sidekiq #{Sidekiq::VERSION} with Redis at #{redis.client.location}"
|
||||
verbose options.inspect
|
||||
@count = (options[:processor_count] || 25).to_i
|
||||
@count = options[:processor_count] || 25
|
||||
@queues = options[:queues]
|
||||
@done_callback = nil
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue