1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Store how many work items are worked on per pool.

This commit is contained in:
Con Kolivas 2013-11-03 00:52:15 +11:00
parent ab1e9404a7
commit 8e1ec8bd43
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

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