mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Space out retrieval of extra work according to the number of mining threads.
This commit is contained in:
parent
37374bb44b
commit
5ec684ce2b
@ -2909,8 +2909,10 @@ static bool queue_request(struct thr_info *thr, bool needed)
|
|||||||
|
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
|
|
||||||
|
/* Space out retrieval of extra work according to the number of mining
|
||||||
|
* threads */
|
||||||
if (rq >= mining_threads + staged_clones &&
|
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;
|
return true;
|
||||||
|
|
||||||
/* fill out work request message */
|
/* fill out work request message */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user