Browse Source

Merge commit 'afad029' into bfgminer

Luke Dashjr 11 years ago
parent
commit
4f4ff326eb
1 changed files with 6 additions and 6 deletions
  1. 6 6
      driver-bitfury.c

+ 6 - 6
driver-bitfury.c

@@ -441,6 +441,12 @@ void bitfury_do_io(struct thr_info * const master_thr)
 		uint32_t * const newbuf = &bitfury->newbuf[0];
 		uint32_t * const newbuf = &bitfury->newbuf[0];
 		uint32_t * const oldbuf = &bitfury->oldbuf[0];
 		uint32_t * const oldbuf = &bitfury->oldbuf[0];
 		
 		
+		if (tvp_stat->tv_sec == 0 && tvp_stat->tv_usec == 0) {
+			copy_time(tvp_stat, &tv_now);
+		}
+		
+		int stat_elapsed_secs = timer_elapsed(tvp_stat, &tv_now);
+		
 		inp = rxbuf[j];
 		inp = rxbuf[j];
 		
 		
 		if (unlikely(bitfury->desync_counter == 99))
 		if (unlikely(bitfury->desync_counter == 99))
@@ -539,12 +545,6 @@ void bitfury_do_io(struct thr_info * const master_thr)
 			}
 			}
 		}
 		}
 		
 		
-		if (tvp_stat->tv_sec == 0 && tvp_stat->tv_usec == 0) {
-			copy_time(tvp_stat, &tv_now);
-		}
-		
-		int stat_elapsed_secs = timer_elapsed(tvp_stat, &tv_now);
-		
 		if (c->osc6_max)
 		if (c->osc6_max)
 		{
 		{
 			if (stat_elapsed_secs >= 60)
 			if (stat_elapsed_secs >= 60)