From 186f28516c8049ec6405d7015f996f4c5fbace27 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 26 Sep 2022 20:45:08 +1000 Subject: [PATCH] Fix scripts/benchmark/connections.js --- scripts/benchmark/connections.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/benchmark/connections.js b/scripts/benchmark/connections.js index ffca2628..515f76e9 100644 --- a/scripts/benchmark/connections.js +++ b/scripts/benchmark/connections.js @@ -8,7 +8,7 @@ var cores = 1; try { cores = Number(process.env.THREADS) || os.cpus().length; } catch { - console.log("[Bundle] Failed to get thread count! Using 1...") + console.log("[Bundle] Failed to get thread count! Using 1..."); } if (!token) { @@ -17,7 +17,7 @@ if (!token) { } if (cluster.isMaster) { - for (let i = 0; i < threads; i++) { + for (let i = 0; i < cores; i++) { cluster.fork(); }