Skip to content

Commit c43c360

Browse files
authored
Merge pull request #41639 from pbxqdown/patch-1
Fix node score calculation in resource-bin-packing.md
2 parents 63b0042 + 972abbf commit c43c360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/concepts/scheduling-eviction/resource-bin-packing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ cpu = resourceScoringFunction((2+1),8)
203203
= rawScoringFunction(37.5)
204204
= 3 # floor(37.5/10)
205205
206-
NodeScore = (7 * 5) + (5 * 1) + (3 * 3) / (5 + 1 + 3)
206+
NodeScore = ((7 * 5) + (5 * 1) + (3 * 3)) / (5 + 1 + 3)
207207
= 5
208208
```
209209

@@ -242,7 +242,7 @@ cpu = resourceScoringFunction((2+6),8)
242242
= rawScoringFunction(100)
243243
= 10
244244
245-
NodeScore = (5 * 5) + (7 * 1) + (10 * 3) / (5 + 1 + 3)
245+
NodeScore = ((5 * 5) + (7 * 1) + (10 * 3)) / (5 + 1 + 3)
246246
= 7
247247
248248
```

0 commit comments

Comments
 (0)