From 0b60e2845ceb2778cae2050bd63e2e4589dd8b54 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Sat, 25 Feb 2017 12:14:41 -0800 Subject: [PATCH] Reverting timing change for stats. --- lib/worker.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/worker.js b/lib/worker.js index 1e96a07..4a914ba 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -132,7 +132,6 @@ function updateShareStats() { if (globalMinerList === false) { globalMinerList = []; } - let globalTimes = []; // pplns: 0, pps: 0, solo: 0, prop: 0, global: 0 ['pplns', 'pps', 'solo', 'prop', 'global'].forEach(function (key) { let cachedData = global.database.getCache(key + "_stats"); @@ -158,9 +157,6 @@ function updateShareStats() { } } } - cachedData.hashHistory.forEach(function(data){ - globalTimes.push(data.ts); - }); } else { cachedData = { hash: Math.floor(localStats[key] / 600), @@ -191,12 +187,6 @@ function updateShareStats() { cachedData.hashHistory.pop(); } } - let hashData = cachedData.hashHistory; - hashData.forEach(function(data){ - if (!globalTimes.hasOwnProperty(data.ts)){ - cachedData.hashHistory.splice(cachedData.hashHistory.indexOf(data), 1); - } - }); } } else { cachedData = {