Set each miner thread last valid work just before starting its hash loop in case there are delays at startup.
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);