Browse Source

Always show the stratum share lag time in debug mode.

port-ckolivas
Con Kolivas 11 years ago committed by Noel Maersk
parent
commit
b5abf68938
  1. 4
      sgminer.c

4
sgminer.c

@ -5031,7 +5031,7 @@ static void stratum_share_result(json_t *val, json_t *res_val, json_t *err_val, @@ -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) @@ -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);
}

Loading…
Cancel
Save