From 8f4a2cc2043118dd0a6dbd74351a5b3dc8bc710e Mon Sep 17 00:00:00 2001 From: Kosala Hemachandra <10602065+kvhnuke@users.noreply.github.com> Date: Mon, 25 Oct 2021 22:21:36 -0700 Subject: [PATCH] devop: use -1 cpus to stop freezing --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",