From 5ec684ce2bd5233f47dddce08aea8ab28abfff3e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 11 Feb 2012 13:20:32 +1100 Subject: [PATCH] Space out retrieval of extra work according to the number of mining threads. --- cgminer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 623f81f1..d43bad68 100644 --- a/cgminer.c +++ b/cgminer.c @@ -2909,8 +2909,10 @@ static bool queue_request(struct thr_info *thr, bool needed) gettimeofday(&now, NULL); + /* Space out retrieval of extra work according to the number of mining + * threads */ if (rq >= mining_threads + staged_clones && - (now.tv_sec - requested_tv_sec) < opt_scantime * 2 / 3) + (now.tv_sec - requested_tv_sec) < opt_scantime / (mining_threads + 1)) return true; /* fill out work request message */