diff --git a/lib/worker.js b/lib/worker.js index 49c3680..6547938 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -250,8 +250,9 @@ function updatePoolStats(poolType) { let cache; if (typeof(poolType) !== 'undefined') { cache = global.database.getCache(poolType + "_stats"); + } else { + cache = global.database.getCache("global_stats"); } - cache = global.database.getCache("global_stats"); async.series([ function (callback) { debug(threadName + "Checking Influx for last 10min avg for pool stats");