From 1b0a0ac5dbbe99bd7a8aad22f16fc557fabd411a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 5 Jul 2012 22:32:05 +1000 Subject: [PATCH] No point counting wait time until the work is actually sent to bitforce devices. --- driver-bitforce.c | 1 - 1 file changed, 1 deletion(-) diff --git a/driver-bitforce.c b/driver-bitforce.c index 7cc41899..93fdcbbe 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -271,7 +271,6 @@ re_send: BFgets(pdevbuf, sizeof(pdevbuf), fdDev); if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) { mutex_unlock(&bitforce->device_mutex); - bitforce->wait_ms += WORK_CHECK_INTERVAL_MS; usleep(WORK_CHECK_INTERVAL_MS * 1000); goto re_send; } else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {