|
@@ -237,7 +237,7 @@ func customResourceScorer(nodeName string) (float64, error) {
|
|
|
sum++
|
|
|
}
|
|
|
socketSum += average["c6res"] * float64(len(currCores))
|
|
|
- socketCores += len(currCores)
|
|
|
+ socketCores += float64(len(currCores))
|
|
|
}
|
|
|
|
|
|
// Select Socket
|
|
@@ -259,7 +259,7 @@ func customResourceScorer(nodeName string) (float64, error) {
|
|
|
}
|
|
|
|
|
|
//Update the cache with the new metrics
|
|
|
- err = customcache.LabCache.UpdateCache(results, average["c6res"], nodeName)
|
|
|
+ err = customcache.LabCache.UpdateCache(results, socketSum/socketCores, nodeName)
|
|
|
if err != nil {
|
|
|
klog.Infof(err.Error())
|
|
|
} else {
|