Browse Source

Allow to stage more than necessary work items if we're just rolling work.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
d42d0c8ebd
  1. 7
      cgminer.c

7
cgminer.c

@ -2944,12 +2944,7 @@ static struct work *hash_pop(const struct timespec *abstime)
static inline bool should_roll(struct work *work) static inline bool should_roll(struct work *work)
{ {
int rs; if (work->pool == current_pool() || pool_strategy == POOL_LOADBALANCE)
rs = requests_staged();
if (rs >= mining_threads)
return false;
if (work->pool == current_pool() || pool_strategy == POOL_LOADBALANCE || !rs)
return true; return true;
return false; return false;
} }

Loading…
Cancel
Save