PromQL: Fix comment regarding non-nil histogram pointer
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
5fd66ba855
commit
0503d4f372
|
@ -2357,7 +2357,7 @@ loop:
|
||||||
histograms = append(histograms, HPoint{H: &histogram.FloatHistogram{}})
|
histograms = append(histograms, HPoint{H: &histogram.FloatHistogram{}})
|
||||||
}
|
}
|
||||||
if histograms[n].H == nil {
|
if histograms[n].H == nil {
|
||||||
// Make sure to pass non zero H to AtFloatHistogram so that it does a deep-copy.
|
// Make sure to pass non-nil H to AtFloatHistogram so that it does a deep-copy.
|
||||||
// Not an issue in the loop above since that uses an intermediate buffer.
|
// Not an issue in the loop above since that uses an intermediate buffer.
|
||||||
histograms[n].H = &histogram.FloatHistogram{}
|
histograms[n].H = &histogram.FloatHistogram{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue