sync resource-bin-packing

sync resource-bin-packing
pull/41672/head
xin gu 2023-06-18 11:01:28 +08:00
parent c43c360bf4
commit 3d5d9f27cf
1 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ cpu = resourceScoringFunction((2+1),8)
= rawScoringFunction(37.5)
= 3 # floor(37.5/10)
NodeScore = (7 * 5) + (5 * 1) + (3 * 3) / (5 + 1 + 3)
NodeScore = ((7 * 5) + (5 * 1) + (3 * 3)) / (5 + 1 + 3)
= 5
```
@ -341,7 +341,7 @@ cpu = resourceScoringFunction((2+6),8)
= rawScoringFunction(100)
= 10
NodeScore = (5 * 5) + (7 * 1) + (10 * 3) / (5 + 1 + 3)
NodeScore = ((5 * 5) + (7 * 1) + (10 * 3)) / (5 + 1 + 3)
= 7
```