Browse Source

Merge commit 'e7d815e' into bfgminer-3.0.x

Luke Dashjr 12 years ago
parent
commit
a60b809888
1 changed files with 10 additions and 0 deletions
  1. 10 0
      driver-bitforce.c

+ 10 - 0
driver-bitforce.c

@@ -1552,8 +1552,13 @@ bool bitforce_queue_append(struct thr_info *thr, struct work *work)
 	)
 	)
 	{
 	{
 		if (!bitforce_send_queue(thr))
 		if (!bitforce_send_queue(thr))
+		{
 			// Problem sending queue, retry again in a few seconds
 			// Problem sending queue, retry again in a few seconds
+			applog(LOG_ERR, "%"PRIpreprv": Failed to send queue", bitforce->proc_repr);
+			++bitforce->hw_errors;
+			++hw_errors;
 			data->want_to_send_queue = true;
 			data->want_to_send_queue = true;
+		}
 	}
 	}
 	
 	
 	return rv;
 	return rv;
@@ -1610,7 +1615,12 @@ void bitforce_queue_poll(struct thr_info *thr)
 	if (data->want_to_send_queue)
 	if (data->want_to_send_queue)
 		if (!bitforce_send_queue(thr))
 		if (!bitforce_send_queue(thr))
 			if (!data->queued)
 			if (!data->queued)
+			{
+				applog(LOG_ERR, "%"PRIpreprv": Failed to send queue, and queue empty; retrying after 1 second", bitforce->proc_repr);
+				++bitforce->hw_errors;
+				++hw_errors;
 				sleep_us = 1000000;
 				sleep_us = 1000000;
+			}
 	
 	
 	timer_set_delay_from_now(&thr->tv_poll, sleep_us);
 	timer_set_delay_from_now(&thr->tv_poll, sleep_us);
 }
 }