1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-10 04:31:03 +00:00

Update a pool's last work time when the work is popped as well as staged.

This commit is contained in:
Con Kolivas 2013-03-02 16:01:37 +11:00
parent 5c32a47b96
commit 2c3a946cf9

View File

@ -5062,6 +5062,7 @@ static struct work *hash_pop(void)
/* Signal hash_pop again in case there are mutliple hash_pop waiters */
pthread_cond_signal(&getq->cond);
mutex_unlock(stgd_lock);
work->pool->last_work_time = time(NULL);
return work;
}