Achilleas Tzenetopoulos 5 년 전
부모
커밋
9e7acf4e38
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

@@ -220,7 +220,7 @@ func customResourceScorer(nodeName string) (float64, error) {
 		}
 		sum := 0
 		socketSum := 0.0
-		socketCores := 0
+		socketCores := 0.0
 		for _, snode := range socketNodes {
 			currCores, _ := Cores[snode]
 			r, err := queryInfluxDbCores(metrics, curr_uuid, socket, numberOfRows, cfg, c, currCores)