Commit 101394ab70769eef924f9d50045d3b22096756bf

Con Kolivas 2012-10-18T00:57:03

Time for dynamic is in microseconds, not ms.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-opencl.c b/driver-opencl.c
index 8bd876b..eec6ce7 100644
--- a/driver-opencl.c
+++ b/driver-opencl.c
@@ -1504,7 +1504,7 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
 	clFinish(clState->commandQueue);
 
 	/* Windows' timer resolution is only 15ms so oversample 5x */
-	if (gpu->dynamic && (++gpu->intervals * dynamic_us) > 75) {
+	if (gpu->dynamic && (++gpu->intervals * dynamic_us) > 70000) {
 		struct timeval tv_gpuend;
 		double gpu_us;