Commit 3c0b28122d7fb9d92103ff8288771edc191bfbd7

Con Kolivas 2014-03-08T10:55:42

Off by one drv_rolllimit check against jobs

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 4fc5aef..15bf6d4 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1640,7 +1640,7 @@ restart:
 		/* Older firmwares actually had ntime rolling disabled so we
 		 * can roll the work ourselves here to minimise the amount of
 		 * work we need to generate. */
-		if (info->firmware_version < 0.5 && base_work->drv_rolllimit >= jobs) {
+		if (info->firmware_version < 0.5 && base_work->drv_rolllimit > jobs) {
 			base_work->drv_rolllimit--;
 			roll_work(base_work);
 			work = make_clone(base_work);