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 1bdfa29ef7
commit c098988a18

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