1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Only clear the pool lagging flag if we're staging work faster than we're using it.

This commit is contained in:
Con Kolivas 2012-08-27 10:02:53 +10:00
parent d1683f75c9
commit 4a210d4eff

View File

@ -4085,6 +4085,9 @@ retry:
pool = work_heap->pool;
/* If we make it here we have succeeded in getting fresh work */
if (!work_heap->mined) {
/* Only clear the lagging flag if we are staging them at a
* rate faster then we're using them */
if (pool->lagging && total_staged())
pool_tclear(pool, &pool->lagging);
if (pool_tclear(pool, &pool->idle))
pool_resus(pool);