Skip to content

Commit 9ad3d09

Browse files
wilzbachSebmaster
authored andcommitted
use navigator.hardwareConcurrency
1 parent 9d90f54 commit 9ad3d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parallel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
var defaults = {
7373
evalPath: isNode ? __dirname + '/eval.js' : null,
74-
maxWorkers: isNode ? require('os').cpus().length : 4,
74+
maxWorkers: isNode ? require('os').cpus().length : (navigator.hardwareConcurrency || 4),
7575
synchronous: true,
7676
env: {},
7777
envNamespace: 'env'

0 commit comments

Comments
 (0)