Commit 2c2a6f884b792d1c8f7398598f9e604d25403d2a

Con Kolivas 2014-01-23T23:57:12

Generically increase the queue if we are mining on a pool without local work generation each time we run out of work.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index dd56527..e07aa90 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -8282,6 +8282,8 @@ begin_bench:
 			applog(LOG_WARNING, "Pool %d not providing work fast enough", cp->pool_no);
 			cp->getfail_occasions++;
 			total_go++;
+			if (!pool_localgen(cp))
+				applog(LOG_INFO, "Increasing queue to %d", ++opt_queue);
 		}
 		pool = select_pool(lagging);
 retry: