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

Only display discarded bytes in avalon if they're not used as nonces.

This commit is contained in:
Con Kolivas 2013-05-26 01:38:51 +10:00
parent be3224f933
commit 7324a33b55

View File

@ -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; spare = *offset - AVALON_READ_SIZE;
else if (spare)
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
} else {
spare = AVALON_READ_SIZE + i; spare = AVALON_READ_SIZE + i;
if (i)
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", i);
}
if (spare) { if (spare) {
applog(LOG_WARNING, "Avalon: Discarding %d bytes from buffer", spare);
*offset -= spare; *offset -= spare;
memmove(buf, buf + spare, *offset); memmove(buf, buf + spare, *offset);
} }