Skip to content

Commit

Permalink
Remove unneeded comment
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Kartago Lamida <[email protected]>
  • Loading branch information
lamida committed Dec 16, 2024
1 parent 0428fa9 commit 3cedd49
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/streamingpromql/operators/functions/rate_increase.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ func rate(isCounter, isRate bool) RangeVectorStepFunction {
}
}

// histogramRate is utility function for rate/increase/delta.
// It calculates the rate (allowing for counter resets if isCounter is true for rate and increase),
// extrapolates if the first/last sample is close to the boundary, and returns
// the result as either per-second (if isRate is true) or overall (this is increase function).
// If isCounter and isRate are both false, this function will calculate the delta.
func histogramRate(isCounter, isRate bool, hCount int, hHead []promql.HPoint, hTail []promql.HPoint, rangeStart int64, rangeEnd int64, rangeSeconds float64, emitAnnotation types.EmitAnnotationFunc) (*histogram.FloatHistogram, error) {
firstPoint := hHead[0]
hHead = hHead[1:]
Expand Down

0 comments on commit 3cedd49

Please sign in to comment.