1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-04 19:14:26 +00:00

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

This commit is contained in:
Con Kolivas 2011-07-15 01:11:47 +10:00
parent 5fd73374b3
commit 6ab2966035

2
main.c
View File

@ -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;