Browse Source

We should check for amount buffered in icarus get_nonce against amount already received.

Con Kolivas 13 years ago
parent
commit
f4843877d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-icarus.c

+ 1 - 1
driver-icarus.c

@@ -346,7 +346,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct
 			copy_time(tv_finish, &read_finish);
 			copy_time(tv_finish, &read_finish);
 
 
 		// TODO: test if there is more data? to read a 2nd nonce?
 		// TODO: test if there is more data? to read a 2nd nonce?
-		if (amt >= ICARUS_READ_SIZE)
+		if (amt >= read_amount)
 			return ICA_NONCE_OK;
 			return ICA_NONCE_OK;
 
 
 		if (amt > 0) {
 		if (amt > 0) {