From 234dbf031864beb413d143d8f76eb7e96cb6f539 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Mon, 11 Jul 2022 14:53:18 +0800 Subject: [PATCH] scheduler: using math.MinInt64 instead of -math.MaxInt64 --- pkg/scheduler/framework/plugins/interpodaffinity/scoring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go b/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go index f333bb6e3ca..238691bd46f 100644 --- a/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go +++ b/pkg/scheduler/framework/plugins/interpodaffinity/scoring.go @@ -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 {