From 527195c81986c11ec5962ca4724dba7493589694 Mon Sep 17 00:00:00 2001 From: leiju Date: Mon, 13 Jun 2022 21:31:12 +0800 Subject: [PATCH] len to arrLen --- core/engine.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/engine.go b/core/engine.go index 76140fc1..d89c50b0 100644 --- a/core/engine.go +++ b/core/engine.go @@ -273,9 +273,9 @@ func (e *engine) createWavedReqCountArr() { } func createLinearDistArr(count int, arr []int) { - len := len(arr) - minReqCount := int(count / len) - remaining := count - minReqCount*len + arrLen := len(arr) + minReqCount := int(count / arrLen) + remaining := count - minReqCount*arrLen for i := range arr { plusOne := 0 if i < remaining {