Skip to content

Commit

Permalink
doc: update image
Browse files Browse the repository at this point in the history
  • Loading branch information
WTIFS committed Oct 30, 2023
1 parent fcb3990 commit 5bb4bc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/ratelimiter/bbr/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func createBBRPlugin(rule *apitraffic.Rule) *BBRQuotaBucket {

// CPU使用率阈值,默认80%
if threshold := amount.GetMaxAmount().GetValue(); threshold > 0 {
// bbr 的参数为 800‰ 的形式,需要从 rule 中的百分号转到千分号,乘10
// bbr 的参数为 800‰ 的形式,需要从 rule 中的百分号转到千分号,因此这里乘10
options = append(options, core.WithCPUThreshold(int64(threshold*10)))
}
// 统计时间窗口,默认 10s
Expand Down
Binary file modified plugin/ratelimiter/bbr/img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bb4bc4

Please sign in to comment.