tweak the check
This commit is contained in:
parent
8db923cb6e
commit
4ea5e91f2d
|
@ -85,8 +85,8 @@ func (co *DefaultPerfCounter) Push(dur time.Duration /*,_ bool*/) {
|
||||||
b := co.buckets[id]
|
b := co.buckets[id]
|
||||||
//c.DebugDetail("buckets[", id, "]: ", b)
|
//c.DebugDetail("buckets[", id, "]: ", b)
|
||||||
micro := dur.Microseconds()
|
micro := dur.Microseconds()
|
||||||
if micro == math.MaxInt32 {
|
if micro >= math.MaxInt32 {
|
||||||
c.LogWarning(errors.New("dur should not be int32 max"))
|
c.LogWarning(errors.New("dur should not be int32 max or higher"))
|
||||||
}
|
}
|
||||||
|
|
||||||
low := b.low
|
low := b.low
|
||||||
|
|
Loading…
Reference in New Issue