mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 19:58:17 +00:00
Fix order of operations
This commit is contained in:
@@ -68,7 +68,7 @@ func estimateMaximumPods(c clientset.Interface, min, max int32) int32 {
|
|||||||
availablePods += 10
|
availablePods += 10
|
||||||
}
|
}
|
||||||
//avoid creating exactly max pods
|
//avoid creating exactly max pods
|
||||||
availablePods = int32(float32(availablePods) * 8.0 / 10.0)
|
availablePods = int32(float32(availablePods) * (8.0 / 10.0))
|
||||||
// bound the top and bottom
|
// bound the top and bottom
|
||||||
if availablePods > max {
|
if availablePods > max {
|
||||||
availablePods = max
|
availablePods = max
|
||||||
|
|||||||
Reference in New Issue
Block a user