mirror of https://github.com/grpc/grpc-go.git
Fix histogram clear()
This commit is contained in:
parent
edc5ccf8cb
commit
2ac2b966a8
|
|
@ -133,8 +133,8 @@ func (h *Histogram) Clear() {
|
||||||
h.SumOfSquares = 0
|
h.SumOfSquares = 0
|
||||||
h.Min = math.MaxInt64
|
h.Min = math.MaxInt64
|
||||||
h.Max = math.MinInt64
|
h.Max = math.MinInt64
|
||||||
for _, v := range h.Buckets {
|
for i := range h.Buckets {
|
||||||
v.Count = 0
|
h.Buckets[i].Count = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue