Commit 9e10a6c016606d87eedd501704903bab003875cf

Con Kolivas 2012-07-05T20:42:19

Account for wait_ms time when nonce_range is in use on BFL.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bitforce.c b/driver-bitforce.c
index e7c3d88..1ed227f 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -454,6 +454,8 @@ static uint64_t bitforce_scanhash(struct thr_info *thr, struct work *work, uint6
 		sleep_time = bitforce->sleep_ms;
 		if (!restart_wait(sleep_time))
 			return 1;
+
+		bitforce->wait_ms += sleep_time;
 	}
 
 	if (ret)