This commit is contained in:
cui 2026-07-17 21:53:02 -07:00 committed by GitHub
commit de3ccf1c61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,7 +224,7 @@ func (h *runtimeHistogramSnapshot) computePercentiles(thresh []float64) {
for i, count := range h.internal.Counts { for i, count := range h.internal.Counts {
totalCount += float64(count) totalCount += float64(count)
for len(thresh) > 0 && thresh[0] < totalCount { for len(thresh) > 0 && thresh[0] <= totalCount {
thresh[0] = h.internal.Buckets[i] thresh[0] = h.internal.Buckets[i]
thresh = thresh[1:] thresh = thresh[1:]
} }