We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e6667a commit f4e4ebcCopy full SHA for f4e4ebc
lib/influxdb/timestamp_conversion.rb
@@ -14,7 +14,7 @@ module InfluxDB #:nodoc:
14
#
15
# `convert_timestamp(Time.now, "ms")` might return `1543533308243`.
16
def self.convert_timestamp(time, time_precision)
17
- factor = TIMESTAMP_CONVERSIONS.fetch(time_precision.to_s) do
+ factor = TIMESTAMP_CONVERSIONS.fetch(time_precision) do
18
raise "Invalid time precision: #{time_precision}"
19
end
20
0 commit comments