1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00

Set correct device in process_nonces in bflsc driver.

This commit is contained in:
Con Kolivas 2013-04-26 19:33:14 +10:00
parent 93e3e8c90e
commit 11baa32792

View File

@ -1161,11 +1161,11 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, char *xlink, char *
wr_lock(&(sc_info->stat_lock));
if (res)
sc_info->sc_devs[dev].result_id++;
sc_info->sc_devs[i].work_complete++;
sc_info->sc_devs[i].hashes_unsent += FULLNONCE;
sc_info->sc_devs[dev].work_complete++;
sc_info->sc_devs[dev].hashes_unsent += FULLNONCE;
// If not flushed (stale)
if (!(work->devflag))
sc_info->sc_devs[i].work_queued -= 1;
sc_info->sc_devs[dev].work_queued -= 1;
wr_unlock(&(sc_info->stat_lock));
work_completed(bflsc, work);