Browse Source

Simplify code and tidy output.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
cdece1f248
  1. 15
      main.c

15
main.c

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

Loading…
Cancel
Save