mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Simplify multiplication
This commit is contained in:
parent
2933df3645
commit
a707061828
@ -68,7 +68,7 @@ func estimateMaximumPods(c clientset.Interface, min, max int32) int32 {
|
||||
availablePods += 10
|
||||
}
|
||||
//avoid creating exactly max pods
|
||||
availablePods = int32(float32(availablePods) * (8.0 / 10.0))
|
||||
availablePods = int32(float32(availablePods) * 0.8)
|
||||
// bound the top and bottom
|
||||
if availablePods > max {
|
||||
availablePods = max
|
||||
|
Loading…
Reference in New Issue
Block a user