Browse Source

Remove nDev limit in watchdog_thread

Can't work out why it was even there... so there could still be a reason
for it!
nfactor-troky
Paul Sheppard 13 years ago
parent
commit
6ed75c96cb
  1. 5
      cgminer.c

5
cgminer.c

@ -4348,13 +4348,10 @@ static void *watchdog_thread(void __maybe_unused *userdata)
enum dev_enable *denable; enum dev_enable *denable;
int gpu; int gpu;
char dev_str[8]; char dev_str[8];
if (cgpu->api->get_stats) if (cgpu->api->get_stats)
cgpu->api->get_stats(cgpu); cgpu->api->get_stats(cgpu);
/* Use only one thread per device to determine if the GPU is healthy */
if (i >= nDevs)
break;
gpu = thr->cgpu->device_id; gpu = thr->cgpu->device_id;
denable = &cgpu->deven; denable = &cgpu->deven;
sprintf(dev_str, "%s%d", cgpu->api->name, gpu); sprintf(dev_str, "%s%d", cgpu->api->name, gpu);

Loading…
Cancel
Save