diff --git a/common/counters/performance.go b/common/counters/performance.go index 2e5ec6cb..8b55fd49 100644 --- a/common/counters/performance.go +++ b/common/counters/performance.go @@ -85,8 +85,8 @@ func (co *DefaultPerfCounter) Push(dur time.Duration /*,_ bool*/) { b := co.buckets[id] //c.DebugDetail("buckets[", id, "]: ", b) micro := dur.Microseconds() - if micro == math.MaxInt32 { - c.LogWarning(errors.New("dur should not be int32 max")) + if micro >= math.MaxInt32 { + c.LogWarning(errors.New("dur should not be int32 max or higher")) } low := b.low