mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
added back num cpus
This commit is contained in:
@@ -106,7 +106,7 @@ Loader.init = function() {
|
|||||||
silent: true
|
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
|
// Only the first worker sets up templates/sounds/jobs/etc
|
||||||
cluster.fork({ cluster_setup: x === 0 });
|
cluster.fork({ cluster_setup: x === 0 });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user