Commit 4ca288e8204ac8e0fec47af768e3bce37e733ebf

Con Kolivas 2012-08-23T16:55:14

Limit queued_getworks to double the expected queued maximum rather than factoring in number of pools.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 508746b..29362c9 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3929,7 +3929,7 @@ static bool queue_request(struct thr_info *thr, bool needed)
 	bool doq = true;
 
 	mutex_lock(&control_lock);
-	if (queued_getworks > (mining_threads + opt_queue) * total_pools)
+	if (queued_getworks > (mining_threads + opt_queue) * 2)
 		doq = false;
 	else
 		queued_getworks++;