fix worker count

This commit is contained in:
MCHost 2024-03-29 03:09:48 -04:00
parent e479133a4a
commit 479e0d8863

View File

@ -3,7 +3,7 @@ const numCPUs = require('os').cpus().length;
if (cluster.isMaster) {
console.log(`Master ${process.pid} is running`);
console.log(`Total Workers ${numCPUs*8}`)
console.log(`Total Workers ${numCPUs}`)
// Fork workers
for (let i = 0; i < numCPUs; i++) {
cluster.fork();