Commit a754cc3f0cfe19c71bf8ce50eacef035275adb1c

Con Kolivas 2011-08-18T23:07:30

Suppress correct log output when display per-device status.

diff --git a/main.c b/main.c
index 563e0ca..5549644 100644
--- a/main.c
+++ b/main.c
@@ -1553,9 +1553,10 @@ static bool submit_upstream_work(const struct work *work)
 
 	if (!opt_realquiet)
 		print_status(thr_id);
-	applog(LOG_INFO, "%sPU %d  Q:%d  A:%d  R:%d  HW:%d  E:%.0f%%  U:%.2f/m",
-		cgpu->is_gpu? "G" : "C", cgpu->cpu_gpu, cgpu->getworks, cgpu->accepted,
-		cgpu->rejected, cgpu->hw_errors, cgpu->efficiency, cgpu->utility);
+	if (!want_per_device_stats)
+		applog(LOG_INFO, "%sPU %d  Q:%d  A:%d  R:%d  HW:%d  E:%.0f%%  U:%.2f/m",
+			cgpu->is_gpu? "G" : "C", cgpu->cpu_gpu, cgpu->getworks, cgpu->accepted,
+			cgpu->rejected, cgpu->hw_errors, cgpu->efficiency, cgpu->utility);
 
 	json_decref(val);
 
@@ -4151,10 +4152,6 @@ static void log_print_status(int thr_id)
 {
 	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,