Commit 7b57df1171d9e8f0b449d48c80cf52ee1ce74ae7

Con Kolivas 2012-06-24T21:58:52

Allow 1/3 extra buffer of staged work when ageing it.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 7475364..0b0f457 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4324,7 +4324,7 @@ static void age_work(void)
 {
 	int discarded = 0;
 
-	while (requests_staged() > mining_threads) {
+	while (requests_staged() > mining_threads * 4 / 3) {
 		struct work *work = hash_pop(NULL);
 
 		if (unlikely(!work))