mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
thread init fix
This commit is contained in:
parent
a278ca04ce
commit
4fd53c9eb1
@ -372,8 +372,9 @@ static bool bitforce_get_stats(struct cgpu_info *bitforce)
|
|||||||
|
|
||||||
static bool bitforce_thread_init(struct thr_info *thr)
|
static bool bitforce_thread_init(struct thr_info *thr)
|
||||||
{
|
{
|
||||||
|
struct cgpu_info *bitforce = thr->cgpu;
|
||||||
unsigned int wait;
|
unsigned int wait;
|
||||||
thr;
|
|
||||||
/* Pause each new thread a random time between 0-100ms
|
/* Pause each new thread a random time between 0-100ms
|
||||||
so the devices aren't making calls all at the same time. */
|
so the devices aren't making calls all at the same time. */
|
||||||
wait = (rand() * MAX_START_DELAY_US)/RAND_MAX;
|
wait = (rand() * MAX_START_DELAY_US)/RAND_MAX;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user