From 013cda1cd2d8e04ee40e9a1c60626465702f1fd1 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sat, 28 Jan 2017 19:55:10 +0100 Subject: [PATCH] ccminer: show first block diff even with -q --- ccminer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ccminer.cpp b/ccminer.cpp index 11bd117..98115a8 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -2794,9 +2794,9 @@ wait_stratum_url: if (stratum_gen_work(&stratum, &g_work)) g_work_time = time(NULL); if (stratum.job.clean) { - static uint32_t last_bloc_height; - if (!opt_quiet && stratum.job.height != last_bloc_height) { - last_bloc_height = stratum.job.height; + static uint32_t last_block_height; + if ((!opt_quiet || !firstwork_time) && stratum.job.height != last_block_height) { + last_block_height = stratum.job.height; if (net_diff > 0.) applog(LOG_BLUE, "%s block %d, diff %.3f", algo_names[opt_algo], stratum.job.height, net_diff);