Skip to content

Commit

Permalink
Fix: Latency eq 0 is not a float
Browse files Browse the repository at this point in the history
  • Loading branch information
kayn1 committed Mar 12, 2024
1 parent 7f1da19 commit 23c1260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def latency
job = Sidekiq.load_json(entry)
now = Time.now.to_f
thence = job["enqueued_at"] || now
now - thence
(now - thence).to_f
end

def each
Expand Down

0 comments on commit 23c1260

Please sign in to comment.