1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Simplify code and tidy output.

This commit is contained in:
Con Kolivas 2011-08-16 10:45:02 +10:00
parent 8e38a149d8
commit cdece1f248

15
main.c
View File

@ -2474,23 +2474,22 @@ retry:
if (thr->cgpu != cgpu)
continue;
get_datestamp(checkin, &thr->last);
wlog("Thread %d: %.1f Mh/s %s ", i, thr->rolling, gpu_devices[gpu] ? "Enabled" : "Disabled");
switch (cgpu->status) {
default:
case LIFE_WELL:
wlog("Thread %d: %.1f Mh/s %s ALIVE\n", i,
thr->rolling, gpu_devices[gpu] ? "Enabled" : "Disabled");
wlog("ALIVE");
break;
case LIFE_SICK:
wlog("Thread %d: %.1f Mh/s %s SICK reported in %s\n", i,
thr->rolling, gpu_devices[gpu] ? "Enabled" : "Disabled",
checkin);
wlog("SICK reported in %s", checkin);
break;
case LIFE_DEAD:
wlog("Thread %d: %.1f Mh/s %s DEAD reported in %s\n", i,
thr->rolling, gpu_devices[gpu] ? "Enabled" : "Disabled",
checkin);
wlog("DEAD reported in %s", checkin);
break;
}
wlog("\n");
}
wlog("\n");
}
wlogprint("[E]nable [D]isable [R]estart GPU\n");