mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-11 13:42:17 +00:00
Update a pool's last work time when the work is popped as well as staged.
This commit is contained in:
parent
5c32a47b96
commit
2c3a946cf9
@ -5062,6 +5062,7 @@ static struct work *hash_pop(void)
|
|||||||
/* Signal hash_pop again in case there are mutliple hash_pop waiters */
|
/* Signal hash_pop again in case there are mutliple hash_pop waiters */
|
||||||
pthread_cond_signal(&getq->cond);
|
pthread_cond_signal(&getq->cond);
|
||||||
mutex_unlock(stgd_lock);
|
mutex_unlock(stgd_lock);
|
||||||
|
work->pool->last_work_time = time(NULL);
|
||||||
|
|
||||||
return work;
|
return work;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user