소스 검색

minor bug

Achilleas Tzenetopoulos 5 년 전
부모
커밋
1961a4f4ff
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

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

@@ -160,6 +160,8 @@ func customResourceScorer(nodeName string) (float64, error) {
 
 		if sum := average["c6res"] * float64(len(cores)); sum < 1 {
 			res = res * sum
+		} else {
+			res = res * 1 * float64(len(cores))
 		}
 		// Select Node