mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Only display discarded bytes in avalon if they're not used as nonces.
This commit is contained in:
parent
be3224f933
commit
7324a33b55
@ -648,12 +648,16 @@ static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *i
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
if (!found) {
|
||||
spare = *offset - AVALON_READ_SIZE;
|
||||
else
|
||||
if (spare)
|
||||
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
|
||||
} else {
|
||||
spare = AVALON_READ_SIZE + i;
|
||||
if (i)
|
||||
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", i);
|
||||
}
|
||||
if (spare) {
|
||||
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
|
||||
*offset -= spare;
|
||||
memmove(buf, buf + spare, *offset);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user