Skip to content

Commit

Permalink
Changed @@sleep_delay to self.class.sleep_delay to be consistent with…
Browse files Browse the repository at this point in the history
… other class variable usage
  • Loading branch information
betamatt committed Sep 23, 2010
1 parent 234fcf8 commit 7093c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/worker.rb
Expand Up @@ -80,7 +80,7 @@ def start
break if $exit

if count.zero?
sleep(@@sleep_delay)
sleep(self.class.sleep_delay)
else
say "#{count} jobs processed at %.4f j/s, %d failed ..." % [count / realtime, result.last]
end
Expand Down

0 comments on commit 7093c26

Please sign in to comment.