We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c584462 commit ba08971Copy full SHA for ba08971
pkg/statistics/handle/cache/internal/lfu/lfu_cache.go
@@ -75,7 +75,7 @@ func NewLFU(totalMemCost int64) (*LFU, error) {
75
}
76
77
// 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.
+// When the total memory cost is 0, the memory cost is set to 20% of the total memory.
79
func adjustMemCost(totalMemCost int64) (result int64, err error) {
80
if totalMemCost == 0 {
81
memTotal, err := memory.MemTotal()
0 commit comments