mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
opencl: Use new dev_error function for REASON_DEV_NOSTART
This commit is contained in:
parent
dad6c70420
commit
cce7508378
@ -1359,9 +1359,7 @@ static bool opencl_thread_prepare(struct thr_info *thr)
|
|||||||
cgpu->deven = DEV_DISABLED;
|
cgpu->deven = DEV_DISABLED;
|
||||||
cgpu->status = LIFE_NOSTART;
|
cgpu->status = LIFE_NOSTART;
|
||||||
|
|
||||||
cgpu->device_last_not_well = time(NULL);
|
dev_error(cgpu, REASON_DEV_NOSTART);
|
||||||
cgpu->device_not_well_reason = REASON_DEV_NOSTART;
|
|
||||||
cgpu->dev_nostart_count++;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user