From 3d900e7bc2f2d4ea6358a7610eee721b39ee1840 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 14 Jul 2011 11:47:56 +1000 Subject: [PATCH] Initialise gpu_ms_average. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index c03b024d..3ff4c03c 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);