1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 19:44:21 +00:00

Revert "Change BFL driver thread initialising to a constant 100ms delay between devices instead of a random arrangement."

This reverts commit 0785886b53b2838e0c3634143ad883beb191f7c6.
This commit is contained in:
Con Kolivas 2012-07-12 21:29:30 +10:00
parent cbef2a6a65
commit 89e613b943

View File

@ -495,9 +495,9 @@ static bool bitforce_thread_init(struct thr_info *thr)
struct cgpu_info *bitforce = thr->cgpu;
unsigned int wait;
/* Pause each new thread at least 100ms between initialising
* so the devices aren't making calls all at the same time. */
wait = thr->id * MAX_START_DELAY_US;
/* Pause each new thread a random time between 0-100ms
so the devices aren't making calls all at the same time. */
wait = (rand() * MAX_START_DELAY_US)/RAND_MAX;
applog(LOG_DEBUG, "BFL%i: Delaying start by %dms", bitforce->device_id, wait / 1000);
usleep(wait);