Skip to content

Commit

Permalink
Use Time instead of Date since it's automatically available
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlogic committed Mar 14, 2023
1 parent fefa177 commit 3c30f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judoscale-ruby/lib/judoscale/request_metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Judoscale
class RequestMetrics
MILLISECONDS_CUTOFF = Date.new(2000, 1, 1).to_time.to_i * 1000
MILLISECONDS_CUTOFF = Time.new(2000, 1, 1).to_i * 1000
MICROSECONDS_CUTOFF = MILLISECONDS_CUTOFF * 1000
NANOSECONDS_CUTOFF = MICROSECONDS_CUTOFF * 1000

Expand Down

0 comments on commit 3c30f60

Please sign in to comment.