Commit 65e21f18cb25542afe9b976aee1d500eca416be2

Kano 2013-06-12T22:05:35

Icarus driver elaspsed timeout shouldn't be just USB I/O

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-icarus.c b/driver-icarus.c
index 86a781a..8983e28 100644
--- a/driver-icarus.c
+++ b/driver-icarus.c
@@ -445,7 +445,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct
 		if (amt >= read_amount)
 			return ICA_NONCE_OK;
 
-		rc += SECTOMS(tdiff(&read_finish, &read_start));
+		rc = SECTOMS(tdiff(&read_finish, tv_start));
 		if (rc >= read_time) {
 			if (amt > 0)
 				applog(LOG_DEBUG, "Icarus Read: Timeout reading for %d ms", rc);