mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
fix(*): init max score with -maxInt64
This commit is contained in:
parent
273de36b5d
commit
65d2dda443
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ func (pl *InterPodAffinity) NormalizeScore(ctx context.Context, cycleState *fram
|
|||
}
|
||||
|
||||
var minCount int64 = math.MaxInt64
|
||||
var maxCount int64
|
||||
var maxCount int64 = -math.MaxInt64
|
||||
for i := range scores {
|
||||
score := scores[i].Score
|
||||
if score > maxCount {
|
||||
|
|
|
|||
Loading…
Reference in a new issue