1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-08 21:14:14 +00:00

Increase curl reaping time to 5 minutes since comms between curl requests can be 2 mins apart with lots of rolltime.

This commit is contained in:
Con Kolivas 2012-08-20 13:33:08 +10:00
parent 51d485e236
commit 08948e02f3

View File

@ -4553,7 +4553,7 @@ static void reap_curl(struct pool *pool)
list_for_each_entry_safe(ent, iter, &pool->curlring, node) { list_for_each_entry_safe(ent, iter, &pool->curlring, node) {
if (pool->curls < 2) if (pool->curls < 2)
break; break;
if (now.tv_sec - ent->tv.tv_sec > 60) { if (now.tv_sec - ent->tv.tv_sec > 300) {
reaped++; reaped++;
pool->curls--; pool->curls--;
list_del(&ent->node); list_del(&ent->node);