mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
scheduler: using math.MinInt64 instead of -math.MaxInt64
This commit is contained in:
parent
a3f777603b
commit
234dbf0318
@ -262,7 +262,7 @@ func (pl *InterPodAffinity) NormalizeScore(ctx context.Context, cycleState *fram
|
|||||||
}
|
}
|
||||||
|
|
||||||
var minCount int64 = math.MaxInt64
|
var minCount int64 = math.MaxInt64
|
||||||
var maxCount int64 = -math.MaxInt64
|
var maxCount int64 = math.MinInt64
|
||||||
for i := range scores {
|
for i := range scores {
|
||||||
score := scores[i].Score
|
score := scores[i].Score
|
||||||
if score > maxCount {
|
if score > maxCount {
|
||||||
|
Loading…
Reference in New Issue
Block a user