mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Reuse avalon_get_work_count variable.
This commit is contained in:
parent
fb34cb1784
commit
4e2b107642
@ -934,7 +934,7 @@ static int64_t avalon_scanhash(struct thr_info *thr)
|
|||||||
elapsed.tv_sec, elapsed.tv_usec);
|
elapsed.tv_sec, elapsed.tv_usec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result_wrong >= info->miner_count && ret != AVA_GETS_RESTART) {
|
if (result_wrong >= avalon_get_work_count && ret != AVA_GETS_RESTART) {
|
||||||
/* This mean FPGA controller gave all wrong results, so
|
/* This mean FPGA controller gave all wrong results, so
|
||||||
* try to reset the Avalon */
|
* try to reset the Avalon */
|
||||||
do_avalon_close(thr);
|
do_avalon_close(thr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user