Browse Source

ckdb - log the workinfo height for close to block, shares

master
kanoi 8 years ago
parent
commit
29d2612c6d
  1. 2
      src/ckdb.h
  2. 6
      src/ckdb_dbio.c

2
src/ckdb.h

@ -58,7 +58,7 @@
#define DB_VLOCK "1"
#define DB_VERSION "1.0.7"
#define CKDB_VERSION DB_VERSION"-2.413"
#define CKDB_VERSION DB_VERSION"-2.414"
#define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__

6
src/ckdb_dbio.c

@ -3546,9 +3546,9 @@ static bool shares_process(PGconn *conn, SHARES *shares, K_ITEM *wi_item,
100.0 * pool.diffacc /
workinfo->diff_target);
}
LOGWARNING("%s %s Diff %.1f%% (%.0f/%.1f) %s "
"Pool %.1f%s%s",
block ? "BLOCK!" : "Share",
LOGWARNING("%s (%"PRIu32") %s Diff %.1f%% (%.0f/%.1f) "
"%s Pool %.1f%s%s",
block ? "BLOCK!" : "Share", workinfo->height,
(sta == NULL) ? "ok" : sta,
100.0 * shares->sdiff / workinfo->diff_target,
shares->sdiff, workinfo->diff_target,

Loading…
Cancel
Save