Fix scripts/benchmark/connections.js

This commit is contained in:
Madeline
2022-09-26 20:45:08 +10:00
parent e700ab1e65
commit 2b24e044dd

View File

@@ -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();
}