Commit 55c76d40107cd0cdf45a82bae7857307d6736662

Con Kolivas 2014-02-22T15:50:24

Set each miner thread last valid work just before starting its hash loop in case there are delays at startup.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index 15d67a9..e8a348d 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7203,6 +7203,7 @@ void *miner_thread(void *userdata)
 	cgsem_wait(&mythr->sem);
 
 	set_highprio();
+	cgpu->last_device_valid_work = time(NULL);
 	drv->hash_work(mythr);
 out:
 	drv->thread_shutdown(mythr);