summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 20:45:08 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 20:45:08 +1000
commit2b24e044dd64932fb1bb0ac2ce2313bd614451d0 (patch)
treef3590b6db0de37c5d90a71b18139619e752b53ed
parentAdd generate:client script (diff)
downloadserver-2b24e044dd64932fb1bb0ac2ce2313bd614451d0.tar.xz
Fix scripts/benchmark/connections.js
-rw-r--r--scripts/benchmark/connections.js4
1 files 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();
 	}