mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Don't count longpoll work as a staged extra work.
This commit is contained in:
parent
ebaa615f6d
commit
1bbc860a15
@ -2575,7 +2575,7 @@ static bool hash_push(struct work *work)
|
|||||||
if (likely(!getq->frozen)) {
|
if (likely(!getq->frozen)) {
|
||||||
HASH_ADD_INT(staged_work, id, work);
|
HASH_ADD_INT(staged_work, id, work);
|
||||||
HASH_SORT(staged_work, tv_sort);
|
HASH_SORT(staged_work, tv_sort);
|
||||||
if (work->clone || work->longpoll)
|
if (work->clone)
|
||||||
++staged_extras;
|
++staged_extras;
|
||||||
} else
|
} else
|
||||||
rc = false;
|
rc = false;
|
||||||
@ -3573,7 +3573,7 @@ static struct work *hash_pop(const struct timespec *abstime)
|
|||||||
if (HASH_COUNT(staged_work)) {
|
if (HASH_COUNT(staged_work)) {
|
||||||
work = staged_work;
|
work = staged_work;
|
||||||
HASH_DEL(staged_work, work);
|
HASH_DEL(staged_work, work);
|
||||||
if (work->clone || work->longpoll)
|
if (work->clone)
|
||||||
--staged_extras;
|
--staged_extras;
|
||||||
}
|
}
|
||||||
mutex_unlock(stgd_lock);
|
mutex_unlock(stgd_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user