From 0770ae262b358d810a012591136612c48fa47492 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 23 Apr 2017 11:14:50 +0200 Subject: parseint env var --- worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker.js') diff --git a/worker.js b/worker.js index cc6cd9d..fab57b9 100644 --- a/worker.js +++ b/worker.js @@ -16,7 +16,7 @@ const RABBITMQ_URI = process.env.RABBITMQ_URI, // number of inserts in one statement CHUNKSIZE = parseInt(process.env.CHUNKSIZE) || 300, MAXCONNS = parseInt(process.env.MAXCONNS) || 10, // how many concurrent actions - CRUNCHERS = process.env.CRUNCHERS || 4; // how many players to crunch concurrently + CRUNCHERS = parseInt(process.env.CRUNCHERS) || 4; // how many players to crunch concurrently const logger = new (winston.Logger)({ transports: [ -- cgit v1.3.1