Commit 57f5893f4aabdfdbb1395034fefe4ee6c9b8f8ea

Con Kolivas 2011-07-17T19:36:17

Don't miss first work item.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/main.c b/main.c
index 1c9268c..5c8daea 100644
--- a/main.c
+++ b/main.c
@@ -1676,6 +1676,7 @@ static void *gpuminer_thread(void *userdata)
 			"gpu mining thread %d", mythr->id);
 		goto out;
 	}
+	mythr->best_g = ~0;
 	mythr->cgpu->getworks++;
 	work->thr_id = thr_id;
 	requested = false;