mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Remove off by one error.
This commit is contained in:
parent
0a82b255eb
commit
9f59e9a6d6
@ -649,7 +649,7 @@ static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *i
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!found)
|
if (!found)
|
||||||
spare = *offset - AVALON_READ_SIZE - 1;
|
spare = *offset - AVALON_READ_SIZE;
|
||||||
else
|
else
|
||||||
spare = AVALON_READ_SIZE + i;
|
spare = AVALON_READ_SIZE + i;
|
||||||
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
|
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
|
||||||
|
Loading…
Reference in New Issue
Block a user