Procházet zdrojové kódy

fix: Update default cache ratio from 0.5 to 1

1808837298@qq.com před 1 rokem
rodič
revize
1f4ebddcfa
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      setting/operation_setting/cache_ratio.go

+ 1 - 1
setting/operation_setting/cache_ratio.go

@@ -59,7 +59,7 @@ func GetCacheRatio(name string) (float64, bool) {
 	GetCacheRatioMap()
 	ratio, ok := cacheRatioMap[name]
 	if !ok {
-		return 0.5, false // Default to 0.5 if not found
+		return 1, false // Default to 0.5 if not found
 	}
 	return ratio, true
 }