1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-31 00:44:19 +00:00

bflsc get completed hashes as late as possible

This commit is contained in:
Kano 2013-04-26 17:28:46 +10:00
parent 5d8273a399
commit 8fe17e9de3

View File

@ -1521,6 +1521,10 @@ static int64_t bflsc_scanwork(struct thr_info *thr)
} }
} }
// avoid a hard loop
if (sc_info->scan_sleep_time > 0)
nmsleep(sc_info->scan_sleep_time);
// Count up the work done since we last were here // Count up the work done since we last were here
wr_lock(&(sc_info->stat_lock)); wr_lock(&(sc_info->stat_lock));
ret = 0; ret = 0;
@ -1533,10 +1537,6 @@ static int64_t bflsc_scanwork(struct thr_info *thr)
} }
wr_unlock(&(sc_info->stat_lock)); wr_unlock(&(sc_info->stat_lock));
// avoid a hard loop
if (sc_info->scan_sleep_time > 0)
nmsleep(sc_info->scan_sleep_time);
return ret; return ret;
} }