Browse Source

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

Con Kolivas 13 years ago
parent
commit
4ca288e820
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
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++;