master
Avril 5 years ago
parent ca5e6c7fdc
commit 111e1e3ea0
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -96,6 +96,7 @@ func main() {
if th, err := strconv.Atoi(ar[i+1]); err ==nil {
maxThreads = th
ignore = true
continue
} else {
fmt.Printf("Bad threads flag");
}
@ -111,7 +112,7 @@ func main() {
} else {
var sem chan bool
if maxThreads >0 {
if maxThreads > 1 {
sem = make(chan bool, maxThreads)
} else {
sem = make(chan bool)

Loading…
Cancel
Save