From c098988a1866f5c25ef08408737ff8d38484c1be Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 10 Aug 2020 20:23:09 +0300 Subject: [PATCH] =?UTF-8?q?lib/protoparser/influx:=20accept=20`precision?= =?UTF-8?q?=3Dus`=20and=20`precision=3D=C2=B5`=20according=20to=20https://?= =?UTF-8?q?docs.influxdata.com/influxdb/v1.8/tools/api/#write-http-endpoin?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/protoparser/influx/streamparser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protoparser/influx/streamparser.go b/lib/protoparser/influx/streamparser.go index a7b0a54ff8..a964b46167 100644 --- a/lib/protoparser/influx/streamparser.go +++ b/lib/protoparser/influx/streamparser.go @@ -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