Reverting timing change for stats.

master
Alexander Blair 7 years ago
parent 0497b37eab
commit 0b60e2845c

@ -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 = {

Loading…
Cancel
Save