Commit 11baa327923d2f9be527fa6d73bb7e38bd5a244a

Con Kolivas 2013-04-26T19:33:14

Set correct device in process_nonces in bflsc driver.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/driver-bflsc.c b/driver-bflsc.c
index 2c7ca19..03d04e3 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -1161,11 +1161,11 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, char *xlink, char *
 	wr_lock(&(sc_info->stat_lock));
 	if (res)
 		sc_info->sc_devs[dev].result_id++;
-	sc_info->sc_devs[i].work_complete++;
-	sc_info->sc_devs[i].hashes_unsent += FULLNONCE;
+	sc_info->sc_devs[dev].work_complete++;
+	sc_info->sc_devs[dev].hashes_unsent += FULLNONCE;
 	// If not flushed (stale)
 	if (!(work->devflag))
-		sc_info->sc_devs[i].work_queued -= 1;
+		sc_info->sc_devs[dev].work_queued -= 1;
 	wr_unlock(&(sc_info->stat_lock));
 
 	work_completed(bflsc, work);