Skip to content

Node.js based forum software built for the modern web

added back num cpus

barisusakli20b951b9d9b3
diff --git a/loader.js b/loader.js
index f5399bd899..e38a3984c1 100644
--- a/loader.js
+++ b/loader.js
@@ -106,7 +106,7 @@ Loader.init = function() {
silent: true
});
- for(var x=0;x<4;x++) {
+ for(var x=0;x<numCPUs;x++) {
// Only the first worker sets up templates/sounds/jobs/etc
cluster.fork({ cluster_setup: x === 0 });
}