diff --git a/routes/shepherd.js b/routes/shepherd.js index 94f0b0e..9265cba 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -233,7 +233,7 @@ shepherd.get('/cache-all', function(req, res, next) { if (response && response.statusCode && response.statusCode === 200) { outObj.basilisk[coin].addresses = JSON.parse(body).result; writeCache(); - callStack[coin] = callStack[coin] + outObj.basilisk[coin].addresses.length * (coin === 'BTC' ? 2 : 3); + callStack[coin] = callStack[coin] + outObj.basilisk[coin].addresses.length * (coin === 'BTC' || coin === 'SYS' ? 2 : 4); console.log(coin + ' stack len ' + callStack[coin]); async.each(outObj.basilisk[coin].addresses, function(address) { @@ -424,7 +424,7 @@ shepherd.get('/cache-one', function(req, res, next) { outObj.basilisk[coin].addresses = JSON.parse(body).result; console.log(JSON.parse(body).result); writeCache(); - callStack[coin] = callStack[coin] + outObj.basilisk[coin].addresses.length * (coin === 'BTC' ? callsArray.length - 2 : callsArray.length); + callStack[coin] = callStack[coin] + outObj.basilisk[coin].addresses.length * (coin === 'BTC' || coin === 'SYS' ? callsArray.length - 2 : callsArray.length); console.log(coin + ' stack len ' + callStack[coin]); async.each(outObj.basilisk[coin].addresses, function(address) {