From 82fe18554f916298b14f8f937900d51c5430b8ac Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 24 May 2014 21:30:35 +1000 Subject: [PATCH] Add total shares from each user to pool accounted diff shares --- src/stratifier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 8a8f0d3d..bee5425a 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1992,7 +1992,6 @@ static void *statsupdate(void *arg) static void load_users(ckpool_t *ckp) { - uint64_t total_pplns_shares = 0; struct dirent *ep; DIR *dp; @@ -2028,7 +2027,7 @@ static void load_users(ckpool_t *ckp) period = strstr(instance->username, "."); *period = '\0'; instance->pplns_shares = pplns_shares; - total_pplns_shares += pplns_shares; + stats.accounted_diff_shares += pplns_shares; ck_wlock(&instance_lock); HASH_ADD_STR(user_instances, username, instance);