parent
93856f07db
commit
f4f43dc227
|
@ -20,7 +20,7 @@ const {exec} = require('child_process');
|
|||
const cluster = require('cluster');
|
||||
const envWorkerNum = process.env.NODE_WORKER_COUNT;
|
||||
const cpuCount = require('os').cpus().length;
|
||||
const numWorkers = (envWorkerNum && envWorkerNum < cpuCount) ? envWorkerNum : cpuCount;
|
||||
const numWorkers = (envWorkerNum) ? envWorkerNum : cpuCount;
|
||||
|
||||
// own modules
|
||||
const config = require('./config/config');
|
||||
|
|
Loading…
Reference in New Issue