mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-07 20:44:19 +00:00
Always show the stratum share lag time in debug mode.
This commit is contained in:
parent
9c59fe2c31
commit
b5abf68938
@ -5031,7 +5031,7 @@ static void stratum_share_result(json_t *val, json_t *res_val, json_t *err_val,
|
|||||||
int srdiff;
|
int srdiff;
|
||||||
|
|
||||||
srdiff = now_t - sshare->sshare_sent;
|
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",
|
applog(LOG_INFO, "Pool %d stratum share result lag time %d seconds",
|
||||||
work->pool->pool_no, srdiff);
|
work->pool->pool_no, srdiff);
|
||||||
}
|
}
|
||||||
@ -5484,7 +5484,7 @@ static void *stratum_sthread(void *userdata)
|
|||||||
|
|
||||||
sshare->sshare_sent = time(NULL);
|
sshare->sshare_sent = time(NULL);
|
||||||
ssdiff = sshare->sshare_sent - sshare->sshare_time;
|
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",
|
applog(LOG_INFO, "Pool %d stratum share submission lag time %d seconds",
|
||||||
pool->pool_no, ssdiff);
|
pool->pool_no, ssdiff);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user