Browse Source

Merge commit '825d883' into bfgminer-2.10.x

Luke Dashjr 12 years ago
parent
commit
58be3d3d5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-icarus.c

+ 1 - 1
driver-icarus.c

@@ -761,7 +761,7 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 	unsigned char ob_bin[64] = {0}, nonce_bin[ICARUS_READ_SIZE] = {0};
 	unsigned char ob_bin[64] = {0}, nonce_bin[ICARUS_READ_SIZE] = {0};
 	uint32_t nonce;
 	uint32_t nonce;
 	int64_t hash_count;
 	int64_t hash_count;
-	struct timeval tv_start, elapsed;
+	struct timeval tv_start = {.tv_sec=0}, elapsed;
 	struct timeval tv_history_start, tv_history_finish;
 	struct timeval tv_history_start, tv_history_finish;
 	double Ti, Xi;
 	double Ti, Xi;
 	int curr_hw_errors, i;
 	int curr_hw_errors, i;