From 2933df36454124e75be7bcace0b3ee7f2d7060d9 Mon Sep 17 00:00:00 2001 From: Hanna Lee Date: Mon, 19 Jul 2021 19:00:14 -0400 Subject: [PATCH] Fix order of operations --- test/e2e/apimachinery/garbage_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apimachinery/garbage_collector.go b/test/e2e/apimachinery/garbage_collector.go index 493013b6f1c..344ffb0d81b 100644 --- a/test/e2e/apimachinery/garbage_collector.go +++ b/test/e2e/apimachinery/garbage_collector.go @@ -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