Browse Source

Add workername to per-worker stats

master
Con Kolivas 11 years ago
parent
commit
b2bd3047d2
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -2045,11 +2045,12 @@ static void update_userstats(ckpool_t *ckp)
ghs5 = client->dsps5 * nonces; ghs5 = client->dsps5 * nonces;
ghs60 = client->dsps60 * nonces; ghs60 = client->dsps60 * nonces;
ghs1440 = client->dsps1440 * 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, "poolinstance", ckp->name,
"instanceid", client->id, "instanceid", client->id,
"elapsed", elapsed, "elapsed", elapsed,
"username", client->user_instance->username, "username", client->user_instance->username,
"workername", client->workername,
"hashrate", ghs1, "hashrate", ghs1,
"hashrate5m", ghs5, "hashrate5m", ghs5,
"hashrate1hr", ghs60, "hashrate1hr", ghs60,

Loading…
Cancel
Save