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

Loading…
Cancel
Save