mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-07 10:35:41 +00:00
Fix scripts/benchmark/connections.js
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user