Skip to content

Commit

Permalink
Fixed miner hashrate chart data collection
Browse files Browse the repository at this point in the history
  • Loading branch information
fancoder committed Aug 19, 2014
1 parent b5a3b0c commit d7ad454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function storeCollectedValue(chartName, value, settings) {
else {
preSaveFunctions[chartName]
? preSaveFunctions[chartName](lastSet, value)
: statValueHandler.round(lastSet, value);
: statValueHandler.avgRound(lastSet, value);
lastSet[2]++;
}
redisClient.set(getStatsRedisKey(chartName), JSON.stringify(sets));
Expand Down

0 comments on commit d7ad454

Please sign in to comment.