Browse Source

Merge commit '852f6a0' into bfgminer

Luke Dashjr 14 years ago
parent
commit
1318441f6e
3 changed files with 8 additions and 5 deletions
  1. 1 0
      NEWS
  2. 2 2
      configure.ac
  3. 5 3
      miner.c

+ 1 - 0
NEWS

@@ -1,5 +1,6 @@
 BFGMiner Version 2.4.0 - May 3, 2012
 BFGMiner Version 2.4.0 - May 3, 2012
 
 
+- Only show longpoll warning once when it has failed.
 - Convert hashes to an unsigned long long as well.
 - Convert hashes to an unsigned long long as well.
 - Detect pools that have issues represented by endless rejected shares and
 - Detect pools that have issues represented by endless rejected shares and
 disable them, with a parameter to optionally disable this feature.
 disable them, with a parameter to optionally disable this feature.

+ 2 - 2
configure.ac

@@ -1,8 +1,8 @@
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 m4_define([v_maj], [2])
 m4_define([v_maj], [2])
-m4_define([v_min], [3])
-m4_define([v_mic], [6])
+m4_define([v_min], [4])
+m4_define([v_mic], [0])
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 m4_define([v_ver], [v_maj.v_min.v_mic])
 m4_define([v_ver], [v_maj.v_min.v_mic])
 m4_define([lt_rev], m4_eval(v_maj + v_min))
 m4_define([lt_rev], m4_eval(v_maj + v_min))

+ 5 - 3
miner.c

@@ -4016,8 +4016,9 @@ retry_pool:
 			if (end.tv_sec - start.tv_sec > 30)
 			if (end.tv_sec - start.tv_sec > 30)
 				continue;
 				continue;
 			if (opt_retries == -1 || failures++ < opt_retries) {
 			if (opt_retries == -1 || failures++ < opt_retries) {
-				applog(LOG_WARNING,
-					"longpoll failed for %s, sleeping for 30s", pool->lp_url);
+				if (failures == 1)
+					applog(LOG_WARNING,
+					       "longpoll failed for %s, retrying every 30s", pool->lp_url);
 				sleep(30);
 				sleep(30);
 			} else {
 			} else {
 				applog(LOG_ERR,
 				applog(LOG_ERR,
@@ -4119,7 +4120,8 @@ static void *watchpool_thread(void __maybe_unused *userdata)
 		for (i = 0; i < total_pools; i++) {
 		for (i = 0; i < total_pools; i++) {
 			struct pool *pool = pools[i];
 			struct pool *pool = pools[i];
 
 
-			reap_curl(pool);
+			if (!opt_benchmark)
+				reap_curl(pool);
 			if (!pool->enabled)
 			if (!pool->enabled)
 				continue;
 				continue;