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:
parent
04d530f36a
commit
f4843877d9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user