Commit 6ab2966035058e580ed1bdb09d908d3f3bdeecfa

Con Kolivas 2011-07-15T01:11:47

Limit display to total devices to avoid repeating when selecting devices.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index b5e5cbd..ea7e603 100644
--- a/main.c
+++ b/main.c
@@ -1923,7 +1923,7 @@ static void reinit_thread(int thr_id)
 static bool active_device(int thr_id)
 {
 	if (thr_id < gpu_threads) {
-		if (thr_id > nDevs)
+		if (thr_id >= total_devices)
 			return false;
 		if (!gpu_devices[dev_from_id(thr_id)])
 			return false;