From 1a4b3ca2a1bb52b73e5aabdec9b8eccb00b4c88c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 18 Jul 2014 15:04:23 +1000 Subject: [PATCH] Remove duplicated wrong 5 min hashrate code in add_submit --- src/stratifier.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 0aa0123e..1fea454d 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1354,10 +1354,7 @@ static void add_submit(stratum_instance_t *client, int diff, bool valid) copy_tv(&client->last_share, &now_t); client->idle = false; - tdiff = sane_tdiff(&now_t, &client->last_share); - copy_tv(&client->last_share, &now_t); client->ssdc++; - decay_time(&client->dsps5, diff, tdiff, 300); bdiff = sane_tdiff(&now_t, &client->first_share); bias = time_bias(bdiff, 300); tdiff = sane_tdiff(&now_t, &client->ldc);