|
|
@ -495,9 +495,9 @@ static bool bitforce_thread_init(struct thr_info *thr) |
|
|
|
struct cgpu_info *bitforce = thr->cgpu; |
|
|
|
struct cgpu_info *bitforce = thr->cgpu; |
|
|
|
unsigned int wait; |
|
|
|
unsigned int wait; |
|
|
|
|
|
|
|
|
|
|
|
/* Pause each new thread at least 100ms between initialising
|
|
|
|
/* 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 = thr->id * MAX_START_DELAY_US; |
|
|
|
wait = (rand() * MAX_START_DELAY_US)/RAND_MAX; |
|
|
|
applog(LOG_DEBUG, "BFL%i: Delaying start by %dms", bitforce->device_id, wait / 1000); |
|
|
|
applog(LOG_DEBUG, "BFL%i: Delaying start by %dms", bitforce->device_id, wait / 1000); |
|
|
|
usleep(wait); |
|
|
|
usleep(wait); |
|
|
|
|
|
|
|
|
|
|
|