mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Remove unused getwork times in getswork.
This commit is contained in:
parent
6cc490ad7f
commit
b8843546e3
@ -5889,7 +5889,6 @@ static void reap_curl(struct pool *pool)
|
|||||||
|
|
||||||
static bool pool_getswork(struct pool *pool)
|
static bool pool_getswork(struct pool *pool)
|
||||||
{
|
{
|
||||||
struct timeval tv_getwork, tv_getwork_reply;
|
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
int rolltime;
|
int rolltime;
|
||||||
json_t *val;
|
json_t *val;
|
||||||
@ -5899,10 +5898,8 @@ static bool pool_getswork(struct pool *pool)
|
|||||||
if (unlikely(!curl))
|
if (unlikely(!curl))
|
||||||
quit (1, "CURL initialisation failed in pool_getswork");
|
quit (1, "CURL initialisation failed in pool_getswork");
|
||||||
|
|
||||||
gettimeofday(&tv_getwork, NULL);
|
|
||||||
val = json_rpc_call(curl, pool->rpc_url, pool->rpc_userpass,
|
val = json_rpc_call(curl, pool->rpc_url, pool->rpc_userpass,
|
||||||
pool->rpc_req, true, false, &rolltime, pool, false);
|
pool->rpc_req, true, false, &rolltime, pool, false);
|
||||||
gettimeofday(&tv_getwork_reply, NULL);
|
|
||||||
|
|
||||||
if (val) {
|
if (val) {
|
||||||
struct work *work = make_work();
|
struct work *work = make_work();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user