Skip to content

Commit 1e4e00a

Browse files
klihubaskervin
authored andcommitted
topology-aware: fix comments, s/slicable/sliceable/g.
Signed-off-by: Krisztian Litkey <[email protected]>
1 parent e147e5e commit 1e4e00a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cmd/plugins/topology-aware/policy/pools.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ func (p *policy) compareScores(request Request, pools []Node, scores map[int]Sco
722722
// * more isolated capacity wins
723723
// * for a tie, prefer the smaller id
724724
// - for (non-reserved) exclusive allocations
725-
// * more slicable (shared) capacity wins
725+
// * more sliceable (shared) capacity wins
726726
// * for a tie, prefer the smaller id
727727
// - for (non-reserved) shared-only allocations
728728
// * fewer colocated containers win
@@ -1043,18 +1043,18 @@ func (p *policy) compareScores(request Request, pools []Node, scores map[int]Sco
10431043
}
10441044
}
10451045

1046-
// more slicable shared capacity wins
1046+
// more sliceable shared capacity wins
10471047
if request.FullCPUs() > 0 && (shared1 > 0 || shared2 > 0) {
10481048
if shared1 > shared2 {
1049-
log.Debug(" => %s WINS on more slicable capacity", node1.Name())
1049+
log.Debug(" => %s WINS on more sliceable capacity", node1.Name())
10501050
return true
10511051
}
10521052
if shared2 > shared1 {
1053-
log.Debug(" => %s WINS on more slicable capacity", node2.Name())
1053+
log.Debug(" => %s WINS on more sliceable capacity", node2.Name())
10541054
return false
10551055
}
10561056

1057-
log.Debug(" => %s WINS based on equal slicable capacity, lower id",
1057+
log.Debug(" => %s WINS based on equal sliceable capacity, lower id",
10581058
map[bool]string{true: node1.Name(), false: node2.Name()}[id1 < id2])
10591059

10601060
return id1 < id2

cmd/plugins/topology-aware/policy/resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ func (cs *supply) GetScore(req Request) Score {
897897
score.isolated = cs.isolated.Size() - full
898898
}
899899

900-
// if we don't want isolated or there is not enough, calculate slicable capacity
900+
// if we don't want isolated or there is not enough, calculate sliceable capacity
901901
if !cr.isolate || score.isolated < 0 {
902902
score.shared -= 1000 * full
903903
}

0 commit comments

Comments
 (0)