mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
Add stratum share submission lag time to verbose information if it's over 1 second.
This commit is contained in:
parent
f7394ff165
commit
7731806417
10
sgminer.c
10
sgminer.c
@ -260,6 +260,7 @@ struct stratum_share {
|
||||
struct work *work;
|
||||
int id;
|
||||
time_t sshare_time;
|
||||
time_t sshare_sent;
|
||||
};
|
||||
|
||||
static struct stratum_share *stratum_shares = NULL;
|
||||
@ -5471,6 +5472,15 @@ static void *stratum_sthread(void *userdata)
|
||||
free(sshare);
|
||||
pool->stale_shares++;
|
||||
total_stale++;
|
||||
} else {
|
||||
int ssdiff;
|
||||
|
||||
sshare->sshare_sent = time(NULL);
|
||||
ssdiff = sshare->sshare_sent - sshare->sshare_time;
|
||||
if (ssdiff > 0) {
|
||||
applog(LOG_INFO, "Pool %d stratum share submission lag time %d seconds",
|
||||
pool->pool_no, ssdiff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user