We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99110a3 commit b34c0b1Copy full SHA for b34c0b1
ratelimit/bbr/bbr.go
@@ -299,7 +299,7 @@ func (l *BBR) Allow() (ratelimit.DoneFunc, error) {
299
ms := float64(time.Millisecond)
300
return func(ratelimit.DoneInfo) {
301
//nolint
302
- if rt := int64(math.Ceil(float64(time.Now().UnixNano()-start)) / ms); rt > 0 {
+ if rt := int64(math.Ceil(float64(time.Now().UnixNano()-start) / ms)); rt > 0 {
303
l.rtStat.Add(rt)
304
}
305
atomic.AddInt64(&l.inFlight, -1)
0 commit comments