Commit caa266ca3b369e1a774e1523d2a48e8e30becca2

Con Kolivas 2012-08-21T21:10:23

Make opt_queue a function of mining threads in clone_work as well.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 29d19ac..31fce8b 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3972,7 +3972,7 @@ static bool reuse_work(struct work *work)
  * the future */
 static struct work *clone_work(struct work *work)
 {
-	int mrs = mining_threads + opt_queue - total_staged();
+	int oq = opt_queue * mining_threads, mrs = mining_threads + oq - total_staged();
 	struct work *work_clone;
 	bool cloned;