mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
No point counting wait time until the work is actually sent to bitforce devices.
This commit is contained in:
parent
c0c480609d
commit
1b0a0ac5db
@ -271,7 +271,6 @@ re_send:
|
|||||||
BFgets(pdevbuf, sizeof(pdevbuf), fdDev);
|
BFgets(pdevbuf, sizeof(pdevbuf), fdDev);
|
||||||
if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) {
|
if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) {
|
||||||
mutex_unlock(&bitforce->device_mutex);
|
mutex_unlock(&bitforce->device_mutex);
|
||||||
bitforce->wait_ms += WORK_CHECK_INTERVAL_MS;
|
|
||||||
usleep(WORK_CHECK_INTERVAL_MS * 1000);
|
usleep(WORK_CHECK_INTERVAL_MS * 1000);
|
||||||
goto re_send;
|
goto re_send;
|
||||||
} else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
|
} else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user