Browse Source

Set the pool lagging flag on startup to avoid it being shown initially, and only unset it once the maximum number of staged work items has been reached.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
383b42f23e
  1. 5
      cgminer.c

5
cgminer.c

@ -6601,7 +6601,9 @@ int main(int argc, char *argv[])
/* Look for at least one active pool before starting */ /* Look for at least one active pool before starting */
for (i = 0; i < total_pools; i++) { for (i = 0; i < total_pools; i++) {
struct pool *pool = pools[i]; struct pool *pool = pools[i];
if (pool_active(pool, false)) { if (pool_active(pool, false)) {
pool_tset(pool, &pool->lagging);
pool_tclear(pool, &pool->idle); pool_tclear(pool, &pool->idle);
if (!currentpool) if (!currentpool)
currentpool = pool; currentpool = pool;
@ -6846,7 +6848,8 @@ retry:
pool = select_pool(true); pool = select_pool(true);
goto retry; goto retry;
} }
pool_tclear(pool, &pool->lagging); if (ts >= max_staged)
pool_tclear(pool, &pool->lagging);
if (pool_tclear(pool, &pool->idle)) if (pool_tclear(pool, &pool->idle))
pool_resus(pool); pool_resus(pool);

Loading…
Cancel
Save