mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 13:11:11 -08:00
lint
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
5ce990cabc
commit
e4dd3469ac
|
@ -1188,15 +1188,16 @@ func (ev *evaluator) rangeEval(prepSeries func(labels.Labels, *EvalSeriesHelper)
|
|||
}
|
||||
|
||||
for si, series := range matrixes[i] {
|
||||
if len(series.Floats) > 0 && series.Floats[0].T == ts {
|
||||
switch {
|
||||
case len(series.Floats) > 0 && series.Floats[0].T == ts:
|
||||
vectors[i] = append(vectors[i], Sample{Metric: series.Metric, F: series.Floats[0].F, T: ts})
|
||||
// Move input vectors forward so we don't have to re-scan the same
|
||||
// past points at the next step.
|
||||
matrixes[i][si].Floats = series.Floats[1:]
|
||||
} else if len(series.Histograms) > 0 && series.Histograms[0].T == ts {
|
||||
case len(series.Histograms) > 0 && series.Histograms[0].T == ts:
|
||||
vectors[i] = append(vectors[i], Sample{Metric: series.Metric, H: series.Histograms[0].H, T: ts})
|
||||
matrixes[i][si].Histograms = series.Histograms[1:]
|
||||
} else {
|
||||
default:
|
||||
continue
|
||||
}
|
||||
if prepSeries != nil {
|
||||
|
|
Loading…
Reference in a new issue