Browse Source

Don't count longpoll work as a staged extra work.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
1bbc860a15
  1. 4
      cgminer.c

4
cgminer.c

@ -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…
Cancel
Save