mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
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:
parent
1bdfa29ef7
commit
c098988a18
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ func ParseStream(r io.Reader, isGzipped bool, precision, db string, callback fun
|
||||||
switch precision {
|
switch precision {
|
||||||
case "ns":
|
case "ns":
|
||||||
tsMultiplier = 1e6
|
tsMultiplier = 1e6
|
||||||
case "u":
|
case "u", "us", "µ":
|
||||||
tsMultiplier = 1e3
|
tsMultiplier = 1e3
|
||||||
case "ms":
|
case "ms":
|
||||||
tsMultiplier = 1
|
tsMultiplier = 1
|
||||||
|
|
Loading…
Reference in a new issue