Skip to content

Commit

Permalink
bbr half window
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <[email protected]>
  • Loading branch information
CabinfeverB committed Nov 3, 2023
1 parent d10a934 commit 7d824d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ratelimit/bbr.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (l *bbr) checkFullStatus() {
if positive <= 0 {
return result
}
for ; iterator.Next() && i < l.cfg.Bucket/2; i++ {
for ; iterator.Next() && i < l.cfg.Bucket; i++ {
bucket := iterator.Bucket()
total := 0.0
for _, p := range bucket.Points {
Expand Down

0 comments on commit 7d824d6

Please sign in to comment.