1
0
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:
Con Kolivas 2012-06-24 21:58:52 +10:00
parent 53269a97f3
commit 7b57df1171

View File

@ -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))