Browse Source

Store and display stripped url in its own variable.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
ac47f7f3a6
  1. 3
      cgminer.c
  2. 1
      miner.h
  3. 1
      util.c

3
cgminer.c

@ -4154,7 +4154,8 @@ static inline int cp_prio(void) @@ -4154,7 +4154,8 @@ static inline int cp_prio(void)
static void pool_resus(struct pool *pool)
{
applog(LOG_WARNING, "Pool %d %s alive", pool->pool_no, pool->rpc_url);
applog(LOG_WARNING, "Pool %d %s alive", pool->pool_no,
pool->has_stratum ? pool->stratum_url : pool->rpc_url);
if (pool->prio < cp_prio() && pool_strategy == POOL_FAILOVER)
switch_pools(NULL);
}

1
miner.h

@ -833,6 +833,7 @@ struct pool { @@ -833,6 +833,7 @@ struct pool {
struct cgminer_pool_stats cgminer_pool_stats;
/* Stratum variables */
char *stratum_url;
SOCKETTYPE sock;
struct sockaddr_in *server, client;
char *subscription;

1
util.c

@ -843,6 +843,7 @@ bool extract_sockaddr(struct pool *pool, char *url) @@ -843,6 +843,7 @@ bool extract_sockaddr(struct pool *pool, char *url)
}
pool->server = (struct sockaddr_in *)res->ai_addr;
pool->stratum_url = strdup(url_address);
return true;
}

Loading…
Cancel
Save