Browse Source

Revert "Don't reset result counter to zero if it's negative in avalon on just one successful share."

This reverts commit ce0a9cd3a4.

This wasn't the problem.
nfactor-troky
Con Kolivas 12 years ago
parent
commit
b2b594b80e
  1. 2
      driver-avalon.c

2
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)) { if (avalon_decode_nonce(thr, avalon, info, ar, work)) {
mutex_lock(&info->lock); mutex_lock(&info->lock);
if (avalon->results < 0)
avalon->results = 0;
if (!(++avalon->results % info->miner_count)) { if (!(++avalon->results % info->miner_count)) {
gettemp = true; gettemp = true;
avalon->results = 0; avalon->results = 0;

Loading…
Cancel
Save