From ae46665d9789a7ac706469f14286d14a9035146b Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 26 Aug 2014 06:51:56 +1000 Subject: [PATCH] ckdb - another one of those warnings ... --- src/ckdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index e8a1852f..cacb21ef 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -8110,9 +8110,9 @@ static K_TREE *upd_add_mu(K_TREE *mu_root, K_STORE *mu_store, int64_t userid, in begin_workinfoid that has shares accounted to the total, up to the createdate of the block The user average hashrate would be: - diffacc_user * 2^32 / pplns_elapsed + diffacc_user * 2^32 / pplns_elapsed PPLNS fraction of the block would be: - diffacc_user / diffacc_total + diffacc_user / diffacc_total */ static char *cmd_pplns(__maybe_unused PGconn *conn, char *cmd, char *id, @@ -8129,8 +8129,7 @@ static char *cmd_pplns(__maybe_unused PGconn *conn, char *cmd, char *id, K_TREE *mu_root; K_STORE *mu_store; int32_t height; - int64_t workinfoid; - int64_t end_workinfoid; + int64_t workinfoid, end_workinfoid; int64_t begin_workinfoid; tv_t cd, begin_tv, end_tv; K_TREE_CTX ctx[1]; @@ -8176,6 +8175,7 @@ static char *cmd_pplns(__maybe_unused PGconn *conn, char *cmd, char *id, hex2bin(ndiffbin, DATA_WORKINFO(w_item)->bits, 4); ndiff = diff_from_nbits(ndiffbin); + begin_workinfoid = 0; total = 0; sharesummary.workinfoid = workinfoid;