diff --git a/index.js b/index.js index 75c1dc7..907686f 100755 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ import Yargs from "yargs"; import process from "process"; import fs from "fs"; -const numCPUs = cpus().length; +const numCPUs = cpus().length > 1 ? cpus().length - 1 : 1; const argv = Yargs(process.argv.slice(2)) .usage("Usage: $0 [options]") .example( diff --git a/package.json b/package.json index c356c8b..5873f95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vanity-eth", - "version": "2.0.0", + "version": "2.0.1", "description": "ethereum vanity address generator", "main": "index.js", "type": "module",