mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Fix order of operations
This commit is contained in:
parent
c8fde197f5
commit
2933df3645
1 changed files with 1 additions and 1 deletions
|
|
@ -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) * (8.0 / 10.0))
|
||||
// bound the top and bottom
|
||||
if availablePods > max {
|
||||
availablePods = max
|
||||
|
|
|
|||
Loading…
Reference in a new issue