mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-03 09:42:17 +00:00
bfl correct applog typing
This commit is contained in:
parent
95fe655fd7
commit
c44817d5da
@ -580,7 +580,7 @@ static int64_t bitforce_get_result(struct thr_info *thr, struct work *work)
|
|||||||
timersub(&now, &bitforce->work_start_tv, &elapsed);
|
timersub(&now, &bitforce->work_start_tv, &elapsed);
|
||||||
|
|
||||||
if (elapsed.tv_sec >= BITFORCE_LONG_TIMEOUT_S) {
|
if (elapsed.tv_sec >= BITFORCE_LONG_TIMEOUT_S) {
|
||||||
applog(LOG_ERR, "%s%i: took %dms - longer than %dms",
|
applog(LOG_ERR, "%s%i: took %ldms - longer than %dms",
|
||||||
bitforce->drv->name, bitforce->device_id,
|
bitforce->drv->name, bitforce->device_id,
|
||||||
tv_to_ms(elapsed), BITFORCE_LONG_TIMEOUT_MS);
|
tv_to_ms(elapsed), BITFORCE_LONG_TIMEOUT_MS);
|
||||||
return 0;
|
return 0;
|
||||||
@ -596,7 +596,7 @@ static int64_t bitforce_get_result(struct thr_info *thr, struct work *work)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (elapsed.tv_sec > BITFORCE_TIMEOUT_S) {
|
if (elapsed.tv_sec > BITFORCE_TIMEOUT_S) {
|
||||||
applog(LOG_ERR, "%s%i: took %dms - longer than %dms",
|
applog(LOG_ERR, "%s%i: took %ldms - longer than %dms",
|
||||||
bitforce->drv->name, bitforce->device_id,
|
bitforce->drv->name, bitforce->device_id,
|
||||||
tv_to_ms(elapsed), BITFORCE_TIMEOUT_MS);
|
tv_to_ms(elapsed), BITFORCE_TIMEOUT_MS);
|
||||||
dev_error(bitforce, REASON_DEV_OVER_HEAT);
|
dev_error(bitforce, REASON_DEV_OVER_HEAT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user