From e414490bf791c5051f58c40193a1a84754802865 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 18 Aug 2011 22:07:06 +1000 Subject: [PATCH] Don't display rolling status if per device stats is enabled. --- main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 5405e593..9fa0aa5e 100644 --- a/main.c +++ b/main.c @@ -4143,8 +4143,13 @@ static void *watchdog_thread(void *userdata) static void log_print_status(int thr_id) { - struct cgpu_info *cgpu = thr_info[thr_id].cgpu; + struct cgpu_info *cgpu; + /* This will be displayed anyway */ + if (want_per_device_stats) + return; + + cgpu = thr_info[thr_id].cgpu; applog(LOG_WARNING, " %sPU %d: [%.1f / %.1f Mh/s] [Q:%d A:%d R:%d HW:%d E:%.0f%% U:%.2f/m]", cgpu->is_gpu ? "G" : "C", cgpu->cpu_gpu, cgpu->rolling, cgpu->total_mhashes / total_secs, cgpu->getworks,