tweak the check

This commit is contained in:
Azareal 2020-02-28 11:41:16 +10:00
parent 8db923cb6e
commit 4ea5e91f2d
1 changed files with 2 additions and 2 deletions

View File

@ -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