1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 19:44:21 +00:00

Remove discarded work from quota used.

This commit is contained in:
Con Kolivas 2013-11-03 01:22:13 +11:00
parent c3854378e1
commit 819406714a

View File

@ -3911,6 +3911,7 @@ void discard_work(struct work *work)
if (!work->clone && !work->rolls && !work->mined) { if (!work->clone && !work->rolls && !work->mined) {
if (work->pool) { if (work->pool) {
work->pool->discarded_work++; work->pool->discarded_work++;
work->pool->quota_used--;
work->pool->works--; work->pool->works--;
} }
total_discarded++; total_discarded++;