Skip to content

Commit

Permalink
logs: show solved count on solved shares
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Feb 5, 2017
1 parent aaa24a6 commit 916ec50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ int share_result(int result, int pooln, double sharediff, const char *reason)
{
const char *flag;
char suppl[32] = { 0 };
char solved[16] = { 0 };
char s[32] = { 0 };
double hashrate = 0.;
struct pool_infos *p = &pools[pooln];
Expand Down Expand Up @@ -789,12 +790,13 @@ int share_result(int result, int pooln, double sharediff, const char *reason)
flag = use_colors ?
(result ? CL_GRN YAY : CL_RED BOO)
: (result ? "(" YAY ")" : "(" BOO ")");
sprintf(solved, " solved: %u", p->solved_count);
}

applog(LOG_NOTICE, "accepted: %lu/%lu (%s), %s %s",
applog(LOG_NOTICE, "accepted: %lu/%lu (%s), %s %s%s",
p->accepted_count,
p->accepted_count + p->rejected_count,
suppl, s, flag);
suppl, s, flag, solved);
if (reason) {
applog(LOG_WARNING, "reject reason: %s", reason);
if (!check_dups && strncasecmp(reason, "duplicate", 9) == 0) {
Expand Down

0 comments on commit 916ec50

Please sign in to comment.