Browse Source

Store how many work items are worked on per pool.

Con Kolivas 12 years ago
parent
commit
8e1ec8bd43
2 changed files with 2 additions and 0 deletions
  1. 1 0
      cgminer.c
  2. 1 0
      miner.h

+ 1 - 0
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);
 }
 

+ 1 - 0
miner.h

@@ -1271,6 +1271,7 @@ struct pool {
 	int quota;
 	int quota_gcd;
 	int quota_used;
+	int works;
 
 	double diff_accepted;
 	double diff_rejected;