Merge pull request #111062 from SataQiu/fix-scheduler-20220711

scheduler: using math.MinInt64 instead of -math.MaxInt64
This commit is contained in:
Kubernetes Prow Robot 2022-07-15 10:42:18 -07:00 committed by GitHub
commit d6f4a5d04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ func (pl *InterPodAffinity) NormalizeScore(ctx context.Context, cycleState *fram
}
var minCount int64 = math.MaxInt64
var maxCount int64 = -math.MaxInt64
var maxCount int64 = math.MinInt64
for i := range scores {
score := scores[i].Score
if score > maxCount {