mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vminsert/influx: round automatically generated timestamp according to the given precision
arg
This commit is contained in:
parent
ade7bc30db
commit
8ed84a4713
1 changed files with 1 additions and 0 deletions
|
@ -176,6 +176,7 @@ func (ctx *pushCtx) Read(r io.Reader, tsMultiplier int64) bool {
|
|||
}
|
||||
} else if tsMultiplier < 0 {
|
||||
tsMultiplier = -tsMultiplier
|
||||
currentTs -= currentTs % tsMultiplier
|
||||
for i := range ctx.Rows.Rows {
|
||||
row := &ctx.Rows.Rows[i]
|
||||
if row.Timestamp == 0 {
|
||||
|
|
Loading…
Reference in a new issue