1
0
Fork 0
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:
Mike Perham 2012-02-12 11:28:29 -08:00
parent c5d77cc82c
commit b410905c5e
3 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,3 @@
- monitoring stats
- resque-ui-esque web ui
- graceful shutdown (ideally Celluloid will provide this)
- monit/god/etc example scripts

View file

@ -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

View file

@ -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