1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Limit queued_getworks to double the expected queued maximum rather than factoring in number of pools.

This commit is contained in:
Con Kolivas 2012-08-23 16:55:14 +10:00
parent ad90269508
commit 4ca288e820

View File

@ -3929,7 +3929,7 @@ static bool queue_request(struct thr_info *thr, bool needed)
bool doq = true;
mutex_lock(&control_lock);
if (queued_getworks > (mining_threads + opt_queue) * total_pools)
if (queued_getworks > (mining_threads + opt_queue) * 2)
doq = false;
else
queued_getworks++;