Browse Source

log: add LOG_INFO message about suspended stratum to stratum_rthread().

Also a minor style/syntax fix while searching for why pools don't
restart if gone "dead". A pool is considered "dead" if pool->idle
is true.
nfactor-troky
Noel Maersk 11 years ago
parent
commit
dab1d35efd
  1. 4
      sgminer.c

4
sgminer.c

@ -4498,7 +4498,7 @@ updated: @@ -4498,7 +4498,7 @@ updated:
disp_name = pool->rpc_url;
}
wlogprint("%s Quota %d Prio %d: '%s' User:%s\n",
pool->idle? "Dead" : "Alive",
pool->idle ? "Dead" : "Alive",
pool->quota,
pool->prio,
disp_name, pool->rpc_user);
@ -5260,6 +5260,8 @@ static void *stratum_rthread(void *userdata) @@ -5260,6 +5260,8 @@ static void *stratum_rthread(void *userdata)
* indefinitely or just bring it up when we switch to this
* pool */
if (!sock_full(pool) && !cnx_needed(pool)) {
applog(LOG_INFO, "Suspending stratum on %s",
pool->poolname);
suspend_stratum(pool);
clear_stratum_shares(pool);
clear_pool_work(pool);

Loading…
Cancel
Save