Commit 61003df49faae7cec85a9f4800b333da0c91d692

Con Kolivas 2012-08-12T10:33:26

In failover-only mode we need to queue enough work for the local pool and ignore the total queued count.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/cgminer.c b/cgminer.c
index b48a911..057552a 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3826,7 +3826,12 @@ bool queue_request(struct thr_info *thr, bool needed)
 	pps = __pool_pending_staged(cp);
 	mutex_unlock(stgd_lock);
 
-	if (pps && ps >= maxq) {
+	if (opt_fail_only) {
+		if (pps >= maxq) {
+			ret = true;
+			goto out;
+		}
+	} else if (pps && ps >= maxq) {
 		ret = true;
 		goto out;
 	}