|
|
@ -396,6 +396,7 @@ static int64_t bitforce_get_result(struct thr_info *thr, struct work *work) |
|
|
|
* always equal sleep_ms when we've waited greater than or |
|
|
|
* always equal sleep_ms when we've waited greater than or |
|
|
|
* equal to the result return time.*/ |
|
|
|
* equal to the result return time.*/ |
|
|
|
delay_time_ms = bitforce->sleep_ms; |
|
|
|
delay_time_ms = bitforce->sleep_ms; |
|
|
|
|
|
|
|
|
|
|
|
if (bitforce->wait_ms > bitforce->sleep_ms + (WORK_CHECK_INTERVAL_MS * 2)) |
|
|
|
if (bitforce->wait_ms > bitforce->sleep_ms + (WORK_CHECK_INTERVAL_MS * 2)) |
|
|
|
bitforce->sleep_ms += (bitforce->wait_ms - bitforce->sleep_ms) / 2; |
|
|
|
bitforce->sleep_ms += (bitforce->wait_ms - bitforce->sleep_ms) / 2; |
|
|
|
else if (bitforce->wait_ms == bitforce->sleep_ms) { |
|
|
|
else if (bitforce->wait_ms == bitforce->sleep_ms) { |
|
|
|