mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Scale maximum number of curls up according to work submission rate.
This commit is contained in:
parent
56be75228e
commit
1dff48e759
@ -2219,8 +2219,15 @@ static void recruit_curl(struct pool *pool)
|
|||||||
* network delays/outages. */
|
* network delays/outages. */
|
||||||
static struct curl_ent *pop_curl_entry(struct pool *pool)
|
static struct curl_ent *pop_curl_entry(struct pool *pool)
|
||||||
{
|
{
|
||||||
int curl_limit = opt_delaynet ? 5 : mining_threads * 4 / 3;
|
|
||||||
struct curl_ent *ce;
|
struct curl_ent *ce;
|
||||||
|
int curl_limit;
|
||||||
|
|
||||||
|
if (!opt_delaynet) {
|
||||||
|
double work_util = total_diff1 / total_secs * 60;
|
||||||
|
|
||||||
|
curl_limit = (mining_threads + work_util) * 4 / 3;
|
||||||
|
} else
|
||||||
|
curl_limit = 5;
|
||||||
|
|
||||||
mutex_lock(&pool->pool_lock);
|
mutex_lock(&pool->pool_lock);
|
||||||
retry:
|
retry:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user