Achilleas Tzenetopoulos преди 5 години
родител
ревизия
8316ee4fec
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -158,7 +158,7 @@ func customResourceScorer(nodeName string) (float64, error) {
 		}
 		res := calculateScore(scorerInput{metrics: results}, customScoreFn)
 
-		if sum := average["c6res"] * float64(len(cores)); sum > 1 {
+		if sum := average["c6res"] * float64(len(cores)); sum < 1 {
 			res = res * sum
 		}
 		// Select Node