1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-10 04:31:03 +00:00

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

This commit is contained in:
Con Kolivas 2013-05-19 18:28:04 +10:00
parent 04d530f36a
commit f4843877d9

View File

@ -346,7 +346,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct
copy_time(tv_finish, &read_finish);
// 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;
if (amt > 0) {