Commit d42d0c8ebd2ea9f9acb27495e041cc32d1772919

Con Kolivas 2012-02-06T10:41:05

Allow to stage more than necessary work items if we're just rolling work.

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 9d39fd3..59610b1 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2944,12 +2944,7 @@ static struct work *hash_pop(const struct timespec *abstime)
 
 static inline bool should_roll(struct work *work)
 {
-	int rs;
-
-	rs = requests_staged();
-	if (rs >= mining_threads)
-		return false;
-	if (work->pool == current_pool() || pool_strategy == POOL_LOADBALANCE || !rs)
+	if (work->pool == current_pool() || pool_strategy == POOL_LOADBALANCE)
 		return true;
 	return false;
 }