Browse Source

Merge branch 'bugfix_bf_hwe_main' into bfgminer-2.8.x

Luke Dashjr 13 years ago
parent
commit
3accb7cd0b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      driver-bitforce.c

+ 4 - 0
driver-bitforce.c

@@ -300,6 +300,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
 	if (unlikely(!pdevbuf[0])) {
 		applog(LOG_ERR, "BFL%i: Error: Get temp returned empty string/timed out", bitforce->device_id);
 		bitforce->hw_errors++;
+		++hw_errors;
 		return false;
 	}
 
@@ -324,6 +325,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
 		bitforce->dev_throttle_count++;
 		/* Count throttling episodes as hardware errors */
 		bitforce->hw_errors++;
+		++hw_errors;
 		bitforce_clear_buffer(bitforce);
 		return false;
 	}
@@ -508,6 +510,7 @@ static int64_t bitforce_get_result(struct thr_info *thr, struct work *work)
 		return 0;	/* Device idle */
 	else if (strncasecmp(pdevbuf, "NONCE-FOUND", 11)) {
 		bitforce->hw_errors++;
+		++hw_errors;
 		applog(LOG_WARNING, "BFL%i: Error: Get result reports: %s", bitforce->device_id, pdevbuf);
 		bitforce_clear_buffer(bitforce);
 		return 0;
@@ -582,6 +585,7 @@ commerr:
 		bitforce->device_not_well_reason = REASON_DEV_COMMS_ERROR;
 		bitforce->dev_comms_error_count++;
 		bitforce->hw_errors++;
+		++hw_errors;
 		BFclose(bitforce->device_fd);
 		int fd = bitforce->device_fd = BFopen(bitforce->device_path);
 		if (fd == -1) {