From 88dd599f34209144d5bfd0860a5f1ea0e2bdc937 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 5 Jul 2012 22:33:21 +1000 Subject: [PATCH] Initial wait time is always known so no need to zero it beforehand in bitforce. --- driver-bitforce.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/driver-bitforce.c b/driver-bitforce.c index 93fdcbbe..86bc8230 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -431,7 +431,6 @@ static uint64_t bitforce_scanhash(struct thr_info *thr, struct work *work, uint6 unsigned int sleep_time; uint64_t ret; - bitforce->wait_ms = 0; ret = bitforce_send_work(thr, work); if (!bitforce->nonce_range) { @@ -441,7 +440,7 @@ static uint64_t bitforce_scanhash(struct thr_info *thr, struct work *work, uint6 if (!restart_wait(sleep_time)) return 1; - bitforce->wait_ms += sleep_time; + bitforce->wait_ms = sleep_time; queue_request(thr, false); /* Now wait athe final 1/3rd; no bitforce should be finished by now */ @@ -455,7 +454,7 @@ static uint64_t bitforce_scanhash(struct thr_info *thr, struct work *work, uint6 if (!restart_wait(sleep_time)) return 1; - bitforce->wait_ms += sleep_time; + bitforce->wait_ms = sleep_time; } if (ret)