diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-23 11:14:50 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-23 11:14:50 +0200 |
| commit | 0770ae262b358d810a012591136612c48fa47492 (patch) | |
| tree | be6d115682c6902a9de6d4145df3a215976c610e | |
| parent | bc6afda731eb388471fe2499e1af99932cd2fba8 (diff) | |
| download | cruncher-0770ae262b358d810a012591136612c48fa47492.tar.gz cruncher-0770ae262b358d810a012591136612c48fa47492.zip | |
parseint env var
| -rw-r--r-- | worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: [ |
