Merge pull request #116502 from sourcelliu/removecast

Remove unnecessary int64 type conversion
This commit is contained in:
Kubernetes Prow Robot 2023-03-13 21:17:08 -07:00 committed by GitHub
commit e3cf864279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,5 +57,5 @@ func leastRequestedScore(requested, capacity int64) int64 {
return 0
}
return ((capacity - requested) * int64(framework.MaxNodeScore)) / capacity
return ((capacity - requested) * framework.MaxNodeScore) / capacity
}