From 7b57df1171d9e8f0b449d48c80cf52ee1ce74ae7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 24 Jun 2012 21:58:52 +1000 Subject: [PATCH] Allow 1/3 extra buffer of staged work when ageing it. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 7475364a..0b0f457c 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4324,7 +4324,7 @@ static void age_work(void) { int discarded = 0; - while (requests_staged() > mining_threads) { + while (requests_staged() > mining_threads * 4 / 3) { struct work *work = hash_pop(NULL); if (unlikely(!work))