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:
parent
c3854378e1
commit
819406714a
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user