1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 15:04:17 +00:00

device_drv missing drv for cpu and incorrect test

This commit is contained in:
Kano 2013-01-06 01:00:18 +11:00
parent a344deb6ac
commit a4e95cfa42
2 changed files with 2 additions and 1 deletions

View File

@ -5904,7 +5904,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
continue;
#ifdef WANT_CPUMINE
if (cgpu->drv->drv != DRIVER_CPU)
if (cgpu->drv->drv == DRIVER_CPU)
continue;
#endif
if (cgpu->status != LIFE_WELL && (now.tv_sec - thr->last.tv_sec < WATCHDOG_SICK_TIME)) {

View File

@ -844,6 +844,7 @@ CPUSearch:
}
struct device_drv cpu_drv = {
.drv = DRIVER_CPU,
.dname = "cpu",
.name = "CPU",
.drv_detect = cpu_detect,