Skip to content

Commit ba08971

Browse files
committed
statistics: stats cache set default quota as 20%
Signed-off-by: Weizhen Wang <[email protected]>
1 parent c584462 commit ba08971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/statistics/handle/cache/internal/lfu/lfu_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func NewLFU(totalMemCost int64) (*LFU, error) {
7575
}
7676

7777
// adjustMemCost adjusts the memory cost according to the total memory cost.
78-
// When the total memory cost is 0, the memory cost is set to 15% of the total memory.
78+
// When the total memory cost is 0, the memory cost is set to 20% of the total memory.
7979
func adjustMemCost(totalMemCost int64) (result int64, err error) {
8080
if totalMemCost == 0 {
8181
memTotal, err := memory.MemTotal()

0 commit comments

Comments
 (0)