mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-11 13:42:17 +00:00
Add busy time to wait time.
This commit is contained in:
parent
a4a2000cc0
commit
855d1bb3e3
@ -258,6 +258,7 @@ re_send:
|
|||||||
} else if (pdevbuf[0] == 'B') {
|
} else if (pdevbuf[0] == 'B') {
|
||||||
applog(LOG_DEBUG, "BFL%i: Busy", bitforce->device_id);
|
applog(LOG_DEBUG, "BFL%i: Busy", bitforce->device_id);
|
||||||
mutex_unlock(&bitforce->device_mutex);
|
mutex_unlock(&bitforce->device_mutex);
|
||||||
|
bitforce->wait_ms += BITFORCE_CHECK_INTERVAL_MS;
|
||||||
usleep(BITFORCE_CHECK_INTERVAL_MS*1000);
|
usleep(BITFORCE_CHECK_INTERVAL_MS*1000);
|
||||||
goto re_send;
|
goto re_send;
|
||||||
} else if (unlikely(pdevbuf[0] != 'O' || pdevbuf[1] != 'K')) {
|
} else if (unlikely(pdevbuf[0] != 'O' || pdevbuf[1] != 'K')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user