app/vmselect/promql: reduce the diff for f148cffc8a

This is a follow-up for c826f06366
This commit is contained in:
Aliaksandr Valialkin 2022-07-26 19:20:42 +03:00
parent 27c4c5a530
commit 8a83c59956
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -572,7 +572,9 @@ func vmrangeBucketsToLE(tss []*timeseries) []*timeseries {
})
}
xss = xssNew
if len(xss) > 0 {
if len(xss) == 0 {
continue
}
for i := range xss[0].ts.Values {
count := float64(0)
for _, xs := range xss {
@ -588,7 +590,6 @@ func vmrangeBucketsToLE(tss []*timeseries) []*timeseries {
rvs = append(rvs, xs.ts)
}
}
}
return rvs
}