We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4379dcf + fd9c314 commit 007ffddCopy full SHA for 007ffdd
server/http.js
@@ -28,7 +28,7 @@ const logger = require('pelias-logger').get('placeholder');
28
29
// select the amount of cpus we will use
30
const envCpus = parseInt( process.env.CPUS, 10 );
31
-const cpus = Math.min( Math.max( envCpus, 1 ), os.cpus().length );
+const cpus = Math.min( Math.max( envCpus || Infinity, 1 ), os.cpus().length );
32
33
// optionally override port/host using env var
34
var PORT = process.env.PORT || 3000;
0 commit comments