From b5abf689384d6c240763dbe40daf273083634e92 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 2 Feb 2014 10:54:15 +1100 Subject: [PATCH] Always show the stratum share lag time in debug mode. --- sgminer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sgminer.c b/sgminer.c index 37f3307a..58a12f5a 100644 --- a/sgminer.c +++ b/sgminer.c @@ -5031,7 +5031,7 @@ static void stratum_share_result(json_t *val, json_t *res_val, json_t *err_val, int srdiff; srdiff = now_t - sshare->sshare_sent; - if (srdiff > 0) { + if (opt_debug || srdiff > 0) { applog(LOG_INFO, "Pool %d stratum share result lag time %d seconds", work->pool->pool_no, srdiff); } @@ -5484,7 +5484,7 @@ static void *stratum_sthread(void *userdata) sshare->sshare_sent = time(NULL); ssdiff = sshare->sshare_sent - sshare->sshare_time; - if (ssdiff > 0) { + if (opt_debug || ssdiff > 0) { applog(LOG_INFO, "Pool %d stratum share submission lag time %d seconds", pool->pool_no, ssdiff); }