Commit 1b0a0ac5dbbe99bd7a8aad22f16fc557fabd411a

Con Kolivas 2012-07-05T22:32:05

No point counting wait time until the work is actually sent to bitforce devices.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-bitforce.c b/driver-bitforce.c
index 7cc4189..93fdcbb 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))) {