1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Only process nonces in bflsc is the breakdown function succeeds.

This commit is contained in:
Con Kolivas 2013-08-30 21:40:10 +10:00
parent 34d977c819
commit 1403f4dd08

View File

@ -1364,8 +1364,12 @@ static int process_results(struct cgpu_info *bflsc, int dev, char *buf, int *non
freebreakdown(&count, &firstname, &fields); freebreakdown(&count, &firstname, &fields);
for (i = 0; i < que; i++) { for (i = 0; i < que; i++) {
breakdown(NOCOLON, items[i + QUE_RES_LINES_MIN - 1], &count, &firstname, &fields, &lf); res = breakdown(NOCOLON, items[i + QUE_RES_LINES_MIN - 1], &count, &firstname, &fields, &lf);
process_nonces(bflsc, dev, &(xlink[0]), items[i], count, fields, nonces); if (likely(res))
process_nonces(bflsc, dev, &(xlink[0]), items[i], count, fields, nonces);
else
applog(LOG_ERR, "%s%i:%s failed to process nonce %s",
bflsc->drv->name, bflsc->device_id, xlink, items[i]);
freebreakdown(&count, &firstname, &fields); freebreakdown(&count, &firstname, &fields);
sc_info->not_first_work = true; sc_info->not_first_work = true;
} }