Skip to content

Commit

Permalink
fix: remove parallel lighthouse when --urls scan
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Dec 25, 2020
1 parent b6b86de commit ea77a79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/program.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ program.postParse = async () => {

// c = 2, when lighthouse c = 1
if (program.concurrency === undefined) {
program.concurrency = program.lighthouse ? 1 : getConfigVal('concurrency',
os.cpus().length);
program.concurrency = getConfigVal('concurrency', os.cpus().length);
}
if (program.lighthouse) {
program.concurrency = 1;
}

if (program.concurrency > os.cpus().length) {
Expand Down

0 comments on commit ea77a79

Please sign in to comment.