Add per-worker stats page with cumulative work and luck
Expose ckpool's per-worker cumulative shares via patch 0004, add a WorkerDetailPage with hashrate, status, best share with per-worker luck (bestever/shares*100), and total work with pool share percentage. Worker names are now clickable in MinersTable and UserDetailPage. Also centers numeric columns below their headers.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
diff --git a/src/stratifier.c b/src/stratifier.c
|
||||
index c94ca645..a1b2c3e4 100644
|
||||
--- a/src/stratifier.c
|
||||
+++ b/src/stratifier.c
|
||||
@@ -4129,11 +4129,12 @@ static json_t *workerinfo(const user_instance_t *user, const worker_instance_t *
|
||||
{
|
||||
json_t *val;
|
||||
|
||||
- JSON_CPACK(val, "{ss,ss,si,sf,sf,sf,sf,si,sf,sf,si,sb}",
|
||||
+ JSON_CPACK(val, "{ss,ss,si,sf,sf,sf,sf,si,sf,sf,sI,si,sb}",
|
||||
"user", user->username, "worker", worker->workername, "id", user->id,
|
||||
"dsps1", worker->dsps1, "dsps5", worker->dsps5, "dsps60", worker->dsps60,
|
||||
"dsps1440", worker->dsps1440, "lastshare", worker->last_share.tv_sec,
|
||||
"bestdiff", worker->best_diff, "bestever", (double)worker->best_ever,
|
||||
+ "shares", (int64_t)worker->shares,
|
||||
"mindiff", worker->mindiff, "idle", worker->idle);
|
||||
return val;
|
||||
}
|
||||
Reference in New Issue
Block a user