Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly authored Oct 22, 2018
1 parent 8899c93 commit e35b9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ interface Options {
class ForkTsCheckerWebpackPlugin {
static DEFAULT_MEMORY_LIMIT = 2048;
static ONE_CPU = 1;
static ALL_CPUS = os.cpus ? os.cpus().length : 1;
static ALL_CPUS = os.cpus && os.cpus() ? os.cpus().length : 1;
static ONE_CPU_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 1);
static TWO_CPUS_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 2);

Expand Down

0 comments on commit e35b9e2

Please sign in to comment.