From b2bd3047d29d59290b7d0f1935cf9d4140182077 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Jun 2014 21:42:51 +1000 Subject: [PATCH] Add workername to per-worker stats --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index b52b3050..a5225643 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2045,11 +2045,12 @@ static void update_userstats(ckpool_t *ckp) ghs5 = client->dsps5 * nonces; ghs60 = client->dsps60 * nonces; ghs1440 = client->dsps1440 * nonces; - val = json_pack("{ss,si,si,ss,sf,sf,sf,sf,ss,ss,ss,ss}", + val = json_pack("{ss,si,si,ss,ss,sf,sf,sf,sf,ss,ss,ss,ss}", "poolinstance", ckp->name, "instanceid", client->id, "elapsed", elapsed, "username", client->user_instance->username, + "workername", client->workername, "hashrate", ghs1, "hashrate5m", ghs5, "hashrate1hr", ghs60,