added ngo flag and default worker value (NumCpu)

This commit was merged in pull request #4.
This commit is contained in:
Derek McQuay
2016-11-15 21:28:01 -08:00
parent 8d0ecfdc7f
commit b11c4701c3
2 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -94,8 +94,7 @@ func check(files []string) chan error {
results := []<-chan error{}
workers := 32
for w := 0; w < workers; w++ {
for w := 0; w < *ngo; w++ {
results = append(results, compute(jobs))
}