app/vmselect/promql: typo fixes after 7cf7740d18

This commit is contained in:
Aliaksandr Valialkin 2023-11-14 03:34:09 +01:00
parent 3a487666ca
commit 2f885d8e57
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -1494,10 +1494,10 @@ func getMinMaxInstantValues(tssCached, tssStart, tssEnd []*timeseries, f func(a,
mStart := make(map[string]*timeseries, len(tssStart))
for _, ts := range tssStart {
bb.B = marshalMetricNameSorted(bb.B[:0], &ts.MetricName)
if _, ok := m[string(bb.B)]; ok {
if _, ok := mStart[string(bb.B)]; ok {
logger.Panicf("BUG: duplicate series found: %s", &ts.MetricName)
}
m[string(bb.B)] = ts
mStart[string(bb.B)] = ts
tsCached := m[string(bb.B)]
if tsCached != nil && !math.IsNaN(tsCached.Values[0]) {
if !math.IsNaN(ts.Values[0]) {