Remove unnecessary int64 type conversion

Signed-off-by: mantuliu <240951888@qq.com>
This commit is contained in:
mantuliu 2023-03-12 09:50:09 +08:00
parent ead7d66ee1
commit 4204251acf

View File

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