From 8e1ec8bd43c39fd7e9686e3bfffa78ca81c0b7bc Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 3 Nov 2013 00:52:15 +1100 Subject: [PATCH] Store how many work items are worked on per pool. --- cgminer.c | 1 + miner.h | 1 + 2 files changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index 67ac1a06..0b10df66 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4268,6 +4268,7 @@ static void stage_work(struct work *work) applog(LOG_DEBUG, "Pushing work from pool %d to hash queue", work->pool->pool_no); work->work_block = work_block; test_work_current(work); + work->pool->works++; hash_push(work); } diff --git a/miner.h b/miner.h index d0be71e1..f81f3d7d 100644 --- a/miner.h +++ b/miner.h @@ -1271,6 +1271,7 @@ struct pool { int quota; int quota_gcd; int quota_used; + int works; double diff_accepted; double diff_rejected;