From b2b594b80ee5dd565d212a9626ae9882f9077a7e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 27 May 2013 00:53:24 +1000 Subject: [PATCH] Revert "Don't reset result counter to zero if it's negative in avalon on just one successful share." This reverts commit ce0a9cd3a4620e18e391be5ce88c92a606b1fddf. This wasn't the problem. --- driver-avalon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver-avalon.c b/driver-avalon.c index f3f4a371..ff176409 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -621,6 +621,8 @@ static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *i if (avalon_decode_nonce(thr, avalon, info, ar, work)) { mutex_lock(&info->lock); + if (avalon->results < 0) + avalon->results = 0; if (!(++avalon->results % info->miner_count)) { gettemp = true; avalon->results = 0;