troubleshoot anomalous int max with stacktrace
This commit is contained in:
parent
af7b6ebbcb
commit
8db923cb6e
|
@ -80,11 +80,14 @@ func (co *DefaultPerfCounter) insertChunk(low, high, avg int64) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (co *DefaultPerfCounter) Push(dur time.Duration /*_ bool*/) {
|
func (co *DefaultPerfCounter) Push(dur time.Duration /*,_ bool*/) {
|
||||||
id := 0
|
id := 0
|
||||||
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 {
|
||||||
|
c.LogWarning(errors.New("dur should not be int32 max"))
|
||||||
|
}
|
||||||
|
|
||||||
low := b.low
|
low := b.low
|
||||||
low.Lock()
|
low.Lock()
|
||||||
|
|
Loading…
Reference in New Issue