mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Allow 1/3 extra buffer of staged work when ageing it.
This commit is contained in:
parent
53269a97f3
commit
7b57df1171
@ -4324,7 +4324,7 @@ static void age_work(void)
|
|||||||
{
|
{
|
||||||
int discarded = 0;
|
int discarded = 0;
|
||||||
|
|
||||||
while (requests_staged() > mining_threads) {
|
while (requests_staged() > mining_threads * 4 / 3) {
|
||||||
struct work *work = hash_pop(NULL);
|
struct work *work = hash_pop(NULL);
|
||||||
|
|
||||||
if (unlikely(!work))
|
if (unlikely(!work))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user