Commit 3ebe8e8c7765342a9afb0f19c24d0b48b319b12b

Con Kolivas 2012-08-21T22:09:11

Revert "Scale maximum number of curls up according to work submission rate." This reverts commit 1dff48e7595d4b407e6b31ecc5278455858157ea. Did not increase staged work even though it decreased queues.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/cgminer.c b/cgminer.c
index dfcf7c3..1a13d30 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2219,15 +2219,8 @@ static void recruit_curl(struct pool *pool)
  * network delays/outages. */
 static struct curl_ent *pop_curl_entry(struct pool *pool)
 {
+	int curl_limit = opt_delaynet ? 5 : mining_threads * 4 / 3;
 	struct curl_ent *ce;
-	int curl_limit;
-
-	if (!opt_delaynet) {
-		double work_util = total_diff1 / total_secs * 60;
-
-		curl_limit =  (mining_threads + work_util) * 4 / 3;
-	} else
-		curl_limit = 5;
 
 	mutex_lock(&pool->pool_lock);
 retry: