From 2c3a946cf9e437ac9a61ec221ffeb36acf16a7a9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 2 Mar 2013 16:01:37 +1100 Subject: [PATCH] Update a pool's last work time when the work is popped as well as staged. --- cgminer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cgminer.c b/cgminer.c index 958fcbea..86e9c29f 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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; }