Commit 7740ed839a36415beb0bbe1297efe1bbaa653b84

Con Kolivas 2013-05-28T21:15:33

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 1fc907d..2023f60 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -1086,6 +1086,8 @@ static int64_t avalon_scanhash(struct thr_info *thr)
 		avalon->results = miner_count;
 	if (!info->idle)
 		avalon->results -= miner_count / 3;
+	else
+		avalon->results = miner_count;
 	info->nonces = 0;
 	mutex_unlock(&info->lock);