Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-06-24 13:15:00 +02:00
parent 1181763641
commit b8d951a243
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -1241,19 +1241,6 @@ func fixBrokenBuckets2(i int, xss []leTimeseries) {
v = vNext v = vNext
} }
} }
return
// Substitute lower bucket values with upper values if the lower values are NaN
// or are bigger than the upper bucket values.
vNext := xss[len(xss)-1].ts.Values[i]
for j := len(xss) - 2; j >= 0; j-- {
v := xss[j].ts.Values[i]
if math.IsNaN(v) || v > vNext {
xss[j].ts.Values[i] = vNext
} else {
vNext = v
}
}
} }
func mergeSameLE(xss []leTimeseries) []leTimeseries { func mergeSameLE(xss []leTimeseries) []leTimeseries {