From 8f39b502a461711bdacd48d17638ed7d9e0cdc8e Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 30 May 2023 20:55:23 +0000 Subject: [PATCH] refactor: rename --- pew.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pew.go b/pew.go index d991ee7..ba38a68 100644 --- a/pew.go +++ b/pew.go @@ -839,7 +839,7 @@ func (cmd PewCmd) performCI(ka config.Artifact) (err error) { found := false max := cmd.Max - qemuCounter := 0 + threadCounter := 0 swg := sizedwaitgroup.New(cmd.Threads) if cmd.Shuffle { @@ -866,10 +866,10 @@ func (cmd PewCmd) performCI(ka config.Artifact) (err error) { break } swg.Add() - if qemuCounter < cmd.Threads { - duration := time.Second * time.Duration(qemuCounter) + if threadCounter < cmd.Threads { + duration := time.Second * time.Duration(threadCounter) time.Sleep(duration) - qemuCounter++ + threadCounter++ } go cmd.testArtifact(&swg, ka, kernel) }