From 4ea5e91f2db5ba1d2837eb363d5d0714d0a97e92 Mon Sep 17 00:00:00 2001 From: Azareal Date: Fri, 28 Feb 2020 11:41:16 +1000 Subject: [PATCH] tweak the check --- common/counters/performance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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