mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Prepare sleep time on bflsc if no dev needs work yet to avoid busy waiting.
This commit is contained in:
parent
09e9091dd7
commit
09dbd616e2
@ -1423,11 +1423,11 @@ static void *bflsc_get_results(void *userdata)
|
||||
if (bflsc->usbinfo.nodev)
|
||||
return NULL;
|
||||
|
||||
cgsleep_prepare_r(&ts_start);
|
||||
if (dev == -1)
|
||||
goto utsura;
|
||||
|
||||
cgtime(&(sc_info->sc_devs[dev].last_check_result));
|
||||
cgsleep_prepare_r(&ts_start);
|
||||
|
||||
readok = bflsc_qres(bflsc, buf, sizeof(buf), dev, &err, &amount, false);
|
||||
if (err < 0 || (!readok && amount != BFLSC_QRES_LEN) || (readok && amount < 1)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user