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;