1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

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.
This commit is contained in:
Con Kolivas 2013-05-27 00:53:24 +10:00
parent ce0a9cd3a4
commit b2b594b80e

View File

@ -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;