Skip to content

Commit

Permalink
Cast sleep delay to an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
bryckbost committed Apr 9, 2012
1 parent 977272a commit 6df36d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/command.rb
Expand Up @@ -47,7 +47,7 @@ def initialize(args)
@monitor = true
end
opts.on('--sleep-delay N', "Amount of time to sleep when no jobs are found") do |n|
@options[:sleep_delay] = n
@options[:sleep_delay] = n.to_i
end
opts.on('--read-ahead N', "Number of jobs from the queue to consider") do |n|
@options[:read_ahead] = n
Expand Down

0 comments on commit 6df36d9

Please sign in to comment.