Browse files

Cast sleep delay to an integer

  • Loading branch information...
1 parent 977272a commit 6df36d9fd71e792febcd0000e7d43658613c6207 @bryckbost bryckbost committed Apr 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delayed/command.rb
View
2 lib/delayed/command.rb
@@ -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

0 comments on commit 6df36d9

Please sign in to comment.