mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Allow to stage more than necessary work items if we're just rolling work.
This commit is contained in:
parent
b9612715aa
commit
d42d0c8ebd
@ -2944,12 +2944,7 @@ static struct work *hash_pop(const struct timespec *abstime)
|
||||
|
||||
static inline bool should_roll(struct work *work)
|
||||
{
|
||||
int rs;
|
||||
|
||||
rs = requests_staged();
|
||||
if (rs >= mining_threads)
|
||||
return false;
|
||||
if (work->pool == current_pool() || pool_strategy == POOL_LOADBALANCE || !rs)
|
||||
if (work->pool == current_pool() || pool_strategy == POOL_LOADBALANCE)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user