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