Commit 3d900e7bc2f2d4ea6358a7610eee721b39ee1840

Con Kolivas 2011-07-14T11:47:56

Initialise gpu_ms_average.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/main.c b/main.c
index c03b024..3ff4c03 100644
--- a/main.c
+++ b/main.c
@@ -1545,6 +1545,7 @@ static void *gpuminer_thread(void *userdata)
 	struct thr_info *mythr = userdata;
 	const int thr_id = mythr->id;
 	uint32_t *res, *blank_res;
+	double gpu_ms_average = 7;
 
 	size_t globalThreads[1];
 	size_t localThreads[1];
@@ -1584,7 +1585,6 @@ static void *gpuminer_thread(void *userdata)
 	while (1) {
 		struct timeval tv_workstart, tv_gpustart, tv_gpuend;
 		suseconds_t gpu_us;
-		double gpu_ms_average;
 
 		gettimeofday(&tv_gpustart, NULL);
 		timeval_subtract(&diff, &tv_gpustart, &tv_gpuend);