Commit 8e1ec8bd43c39fd7e9686e3bfffa78ca81c0b7bc

Con Kolivas 2013-11-03T00:52:15

Store how many work items are worked on per pool.

diff --git a/cgminer.c b/cgminer.c
index 67ac1a0..0b10df6 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 d0be71e..f81f3d7 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;