Skip to content

Commit f4e4ebc

Browse files
committed
minor bugfix
1 parent 8e6667a commit f4e4ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/influxdb/timestamp_conversion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module InfluxDB #:nodoc:
1414
#
1515
# `convert_timestamp(Time.now, "ms")` might return `1543533308243`.
1616
def self.convert_timestamp(time, time_precision)
17-
factor = TIMESTAMP_CONVERSIONS.fetch(time_precision.to_s) do
17+
factor = TIMESTAMP_CONVERSIONS.fetch(time_precision) do
1818
raise "Invalid time precision: #{time_precision}"
1919
end
2020

0 commit comments

Comments
 (0)