mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
wip
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
1181763641
commit
b8d951a243
1 changed files with 0 additions and 13 deletions
|
@ -1241,19 +1241,6 @@ func fixBrokenBuckets2(i int, xss []leTimeseries) {
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue