From 0831e07555b164a6bc2b036b1770483b530e064a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 24 Jul 2014 14:26:36 +1000 Subject: [PATCH] Fix incorrect interval being passed to hashmeter stats --- src/stratifier.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index fc741823..6dca15d5 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2367,17 +2367,17 @@ static void *statsupdate(void *arg) stats.accounted_diff_shares += stats.unaccounted_diff_shares; stats.accounted_rejects += stats.unaccounted_rejects; - decay_time(&stats.sps1, stats.unaccounted_shares, 15, 60); - decay_time(&stats.sps5, stats.unaccounted_shares, 15, 300); - decay_time(&stats.sps15, stats.unaccounted_shares, 15, 900); - decay_time(&stats.sps60, stats.unaccounted_shares, 15, 3600); - - decay_time(&stats.dsps1, stats.unaccounted_diff_shares, 15, 60); - decay_time(&stats.dsps5, stats.unaccounted_diff_shares, 15, 300); - decay_time(&stats.dsps15, stats.unaccounted_diff_shares, 15, 900); - decay_time(&stats.dsps60, stats.unaccounted_diff_shares, 15, 3600); - decay_time(&stats.dsps360, stats.unaccounted_diff_shares, 15, 21600); - decay_time(&stats.dsps1440, stats.unaccounted_diff_shares, 15, 86400); + decay_time(&stats.sps1, stats.unaccounted_shares, 20, 60); + decay_time(&stats.sps5, stats.unaccounted_shares, 20, 300); + decay_time(&stats.sps15, stats.unaccounted_shares, 20, 900); + decay_time(&stats.sps60, stats.unaccounted_shares, 20, 3600); + + decay_time(&stats.dsps1, stats.unaccounted_diff_shares, 20, 60); + decay_time(&stats.dsps5, stats.unaccounted_diff_shares, 20, 300); + decay_time(&stats.dsps15, stats.unaccounted_diff_shares, 20, 900); + decay_time(&stats.dsps60, stats.unaccounted_diff_shares, 20, 3600); + decay_time(&stats.dsps360, stats.unaccounted_diff_shares, 20, 21600); + decay_time(&stats.dsps1440, stats.unaccounted_diff_shares, 20, 86400); stats.unaccounted_shares = stats.unaccounted_diff_shares =