mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Only display the lagging message if we've requested the work earlier.
This commit is contained in:
parent
ced4a9ac92
commit
b4d6b11b9a
4
main.c
4
main.c
@ -3053,10 +3053,9 @@ retry:
|
|||||||
applog(LOG_WARNING, "Failed to queue_request in get_work");
|
applog(LOG_WARNING, "Failed to queue_request in get_work");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
requested = false;
|
|
||||||
|
|
||||||
if (!requests_staged()) {
|
if (!requests_staged()) {
|
||||||
if (!pool_tset(pool, &pool->lagging)) {
|
if (requested && !pool_tset(pool, &pool->lagging)) {
|
||||||
applog(LOG_WARNING, "Pool %d not providing work fast enough",
|
applog(LOG_WARNING, "Pool %d not providing work fast enough",
|
||||||
pool->pool_no);
|
pool->pool_no);
|
||||||
pool->localgen_occasions++;
|
pool->localgen_occasions++;
|
||||||
@ -3069,6 +3068,7 @@ retry:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
requested = false;
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
abstime.tv_sec = now.tv_sec + 60;
|
abstime.tv_sec = now.tv_sec + 60;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user