Browse Source

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

nfactor-troky
Con Kolivas 12 years ago
parent
commit
7324a33b55
  1. 10
      driver-avalon.c

10
driver-avalon.c

@ -648,12 +648,16 @@ static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *i @@ -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…
Cancel
Save