Commit 5e9676c23c7e9f68c027497523f9dcec71821a12

Kano 2012-01-26T16:03:26

Allow dynamic to adjust up to MAX_INTENSITY

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index 569eb49..bd57407 100644
--- a/main.c
+++ b/main.c
@@ -5745,7 +5745,7 @@ static uint64_t opencl_scanhash(struct thr_info *thr, struct work *work, uint64_
 			if (gpu->intensity > MIN_INTENSITY)
 				--gpu->intensity;
 		} else if (gpu_ms_average < 3) {
-			if (gpu->intensity < 10) // Should this be MAX_INTENSITY?
+			if (gpu->intensity < MAX_INTENSITY)
 				++gpu->intensity;
 		}
 	}