mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-30 15:22:07 +00:00
vmselect: fix vmrangeBucketsToLE func may panic when ts value equal zero (#2902)
Co-authored-by: alanwzliang <alanwzliang@tencent.com>
This commit is contained in:
parent
f148cffc8a
commit
c826f06366
1 changed files with 13 additions and 11 deletions
|
@ -572,6 +572,7 @@ func vmrangeBucketsToLE(tss []*timeseries) []*timeseries {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
xss = xssNew
|
xss = xssNew
|
||||||
|
if len(xss) > 0 {
|
||||||
for i := range xss[0].ts.Values {
|
for i := range xss[0].ts.Values {
|
||||||
count := float64(0)
|
count := float64(0)
|
||||||
for _, xs := range xss {
|
for _, xs := range xss {
|
||||||
|
@ -587,6 +588,7 @@ func vmrangeBucketsToLE(tss []*timeseries) []*timeseries {
|
||||||
rvs = append(rvs, xs.ts)
|
rvs = append(rvs, xs.ts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return rvs
|
return rvs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue