Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Protect our sleep interval with a Float()
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 17, 2011
1 parent b4fcfa7 commit 855b2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Expand Up @@ -109,7 +109,7 @@ def validate_queues
# Also accepts a block which will be passed the job as soon as it
# has completed processing. Useful for testing.
def work(interval = 5.0, &block)
interval = interval.to_f
interval = Float(interval)
$0 = "resque: Starting"
startup

Expand Down

0 comments on commit 855b2e6

Please sign in to comment.