Browse Source

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

Con Kolivas 13 years ago
parent
commit
9afbc78920
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -6469,6 +6469,7 @@ retry:
 	/* 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;
 }