From af84e21b472f2ac409465c6dded5aee6e5bac4c3 Mon Sep 17 00:00:00 2001 From: qmhu Date: Fri, 19 Aug 2022 17:39:08 +0800 Subject: [PATCH] fix cpu-percentile error --- pkg/recommendation/recommender/replicas/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/recommendation/recommender/replicas/registry.go b/pkg/recommendation/recommender/replicas/registry.go index fe36440e9..e09acda6c 100644 --- a/pkg/recommendation/recommender/replicas/registry.go +++ b/pkg/recommendation/recommender/replicas/registry.go @@ -58,7 +58,7 @@ func NewReplicasRecommender(recommender apis.Recommender) (*ReplicasRecommender, cpuPercentile, exists := recommender.Config["cpu-percentile"] if !exists { - cpuPercentile = "0.95" + cpuPercentile = "95" } cpuPercentileFloat, err := strconv.ParseFloat(cpuPercentile, 64)