From 0785886b53b2838e0c3634143ad883beb191f7c6 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Wed, 11 Jul 2012 23:17:23 +1000 Subject: [PATCH] Change BFL driver thread initialising to a constant 100ms delay between devices instead of a random arrangement. --- driver-bitforce.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver-bitforce.c b/driver-bitforce.c index b18f87c3..ced05abe 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -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 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; + /* 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; applog(LOG_DEBUG, "BFL%i: Delaying start by %dms", bitforce->device_id, wait / 1000); usleep(wait);