From a05c8e3fd9c2db76f2ef33d45713eb4393046977 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 24 Jun 2012 21:57:18 +1000 Subject: [PATCH] Revert "Take into account total_queued as well when deciding whether to queue a fresh request or not." This reverts commit b20089fdb70a52ec029375beecebfd47efaee218. --- cgminer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cgminer.c b/cgminer.c index 0381b04c..67691eb4 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3501,9 +3501,8 @@ static bool queue_request(struct thr_info *thr, bool needed) int rs = requests_staged(), rq = requests_queued(); struct workio_cmd *wc; - if ((rq >= mining_threads || (rq >= opt_queue && rs >= mining_threads)) && - total_queued >= opt_queue) - return true; + if (rq >= mining_threads || (rq >= opt_queue && rs >= mining_threads)) + return true; /* fill out work request message */ wc = calloc(1, sizeof(*wc)); @@ -4336,7 +4335,7 @@ static void *watchdog_thread(void __maybe_unused *userdata) struct timeval now; sleep(interval); - if (requests_queued() < opt_queue || total_queued < opt_queue) + if (requests_queued() < opt_queue) queue_request(NULL, false); age_work();