From a707061828849b7565b40ec4c018ba3b77ec7fee Mon Sep 17 00:00:00 2001 From: Hanna Lee Date: Mon, 19 Jul 2021 19:21:00 -0400 Subject: [PATCH] Simplify multiplication --- 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 344ffb0d81b..c608878a92b 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) * 0.8) // bound the top and bottom if availablePods > max { availablePods = max