Skip to content

Commit

Permalink
fix cpu-percentile error
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed Aug 20, 2022
1 parent 8d76942 commit af84e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/recommendation/recommender/replicas/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af84e21

Please sign in to comment.