diff --git a/lib/sidekiq-rate-limiter/fetch.rb b/lib/sidekiq-rate-limiter/fetch.rb index 876c956..a2d0372 100644 --- a/lib/sidekiq-rate-limiter/fetch.rb +++ b/lib/sidekiq-rate-limiter/fetch.rb @@ -26,7 +26,7 @@ def limit(work) options = { :limit => (limit.respond_to?(:call) ? limit.call(*args) : limit).to_i, - :interval => (interval.respond_to?(:call) ? interval.call(*args) : interval).to_f, + :interval => (interval.respond_to?(:call) ? interval.call(*args) : interval).to_i, :name => (name.respond_to?(:call) ? name.call(*args) : name).to_s, }