浏览代码

minor bug

Achilleas Tzenetopoulos 5 年之前
父节点
当前提交
68cde14eb8
共有 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

@@ -158,7 +158,9 @@ func customResourceScorer(nodeName string) (float64, error) {
 		}
 		res := calculateScore(scorerInput{metrics: results}, customScoreFn)
 
+		klog.Infof("Node: %v\t res before: %v", nodeName, res)
 		if sum := average["c6res"]; sum < 1 {
+			klog.Infof("Average C6 is less than 1, so we get: %v", average["c6res"])
 			res = res * sum
 		} else {
 			res = res * 1