Skip to content

Commit

Permalink
len to arrLen
Browse files Browse the repository at this point in the history
  • Loading branch information
leijux committed Jun 13, 2022
1 parent a78f015 commit 527195c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 527195c

Please sign in to comment.