Browse Source

Bugfix: icarus: Check for impossibly fast hw errors (and don't report Eh/s when they occur)

Luke Dashjr 11 years ago
parent
commit
8ca90b0764
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-icarus.c

+ 2 - 0
driver-icarus.c

@@ -1149,6 +1149,8 @@ keepwaiting:
 		// complete it can't have done more than a full nonce
 		if (unlikely(estimate_hashes > 0xffffffff))
 			estimate_hashes = 0xffffffff;
+		if (unlikely(estimate_hashes < 0))
+			estimate_hashes = 0;
 
 		applog(LOG_DEBUG, "%"PRIpreprv" no nonce = 0x%08"PRIx64" hashes (%"PRId64".%06lus)",
 		       icarus->proc_repr,