From cdece1f248e95bc017e4d1b6b960aa8f00971097 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 16 Aug 2011 10:45:02 +1000 Subject: [PATCH] Simplify code and tidy output. --- main.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/main.c b/main.c index 55adcbce..36890551 100644 --- a/main.c +++ b/main.c @@ -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");