Commit 5ec684ce2bd5233f47dddce08aea8ab28abfff3e

Con Kolivas 2012-02-11T13:20:32

Space out retrieval of extra work according to the number of mining threads.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/cgminer.c b/cgminer.c
index 623f81f..d43bad6 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2909,8 +2909,10 @@ static bool queue_request(struct thr_info *thr, bool needed)
 
 	gettimeofday(&now, NULL);
 
+	/* Space out retrieval of extra work according to the number of mining
+	 * threads */
 	if (rq >= mining_threads + staged_clones &&
-	    (now.tv_sec - requested_tv_sec) < opt_scantime * 2 / 3)
+	    (now.tv_sec - requested_tv_sec) < opt_scantime / (mining_threads + 1))
 		return true;
 
 	/* fill out work request message */