Browse Source

Give a buffer of perceived results in avalon during idle periods to allow for results once it becomes active again.

Con Kolivas 13 years ago
parent
commit
7740ed839a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-avalon.c

+ 2 - 0
driver-avalon.c

@@ -1086,6 +1086,8 @@ static int64_t avalon_scanhash(struct thr_info *thr)
 		avalon->results = miner_count;
 		avalon->results = miner_count;
 	if (!info->idle)
 	if (!info->idle)
 		avalon->results -= miner_count / 3;
 		avalon->results -= miner_count / 3;
+	else
+		avalon->results = miner_count;
 	info->nonces = 0;
 	info->nonces = 0;
 	mutex_unlock(&info->lock);
 	mutex_unlock(&info->lock);