1
0

refactor: rename

This commit is contained in:
dump_stack() 2023-05-30 20:55:23 +00:00
parent 916acc9895
commit 8f39b502a4
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

8
pew.go
View File

@ -839,7 +839,7 @@ func (cmd PewCmd) performCI(ka config.Artifact) (err error) {
found := false found := false
max := cmd.Max max := cmd.Max
qemuCounter := 0 threadCounter := 0
swg := sizedwaitgroup.New(cmd.Threads) swg := sizedwaitgroup.New(cmd.Threads)
if cmd.Shuffle { if cmd.Shuffle {
@ -866,10 +866,10 @@ func (cmd PewCmd) performCI(ka config.Artifact) (err error) {
break break
} }
swg.Add() swg.Add()
if qemuCounter < cmd.Threads { if threadCounter < cmd.Threads {
duration := time.Second * time.Duration(qemuCounter) duration := time.Second * time.Duration(threadCounter)
time.Sleep(duration) time.Sleep(duration)
qemuCounter++ threadCounter++
} }
go cmd.testArtifact(&swg, ka, kernel) go cmd.testArtifact(&swg, ka, kernel)
} }