lib/protoparser/influx: accept precision=us and precision=µ according to https://docs.influxdata.com/influxdb/v1.8/tools/api/#write-http-endpoint

This commit is contained in:
Aliaksandr Valialkin 2020-08-10 20:23:09 +03:00
parent e3439a6cd0
commit 890cfe5b61

View File

@ -38,7 +38,7 @@ func ParseStream(r io.Reader, isGzipped bool, precision, db string, callback fun
switch precision {
case "ns":
tsMultiplier = 1e6
case "u":
case "u", "us", "µ":
tsMultiplier = 1e3
case "ms":
tsMultiplier = 1