Browse Source

devs display - fix GPU duplicate bug

nfactor-troky
Kano 12 years ago
parent
commit
12045aae55
  1. 8
      cgminer.c

8
cgminer.c

@ -6434,8 +6434,8 @@ static void *watchdog_thread(void __maybe_unused *userdata) @@ -6434,8 +6434,8 @@ static void *watchdog_thread(void __maybe_unused *userdata)
change_logwinsize();
curses_print_status();
count = 0;
for (i = 0; i < mining_threads; i++) {
cgpu = get_thr_cgpu(i);
for (i = 0; i < total_devices; i++) {
cgpu = get_devices(i);
#ifndef USE_USBUTILS
if (cgpu)
#else
@ -6444,8 +6444,8 @@ static void *watchdog_thread(void __maybe_unused *userdata) @@ -6444,8 +6444,8 @@ static void *watchdog_thread(void __maybe_unused *userdata)
curses_print_devstatus(cgpu, count++);
}
#ifdef USE_USBUTILS
for (i = 0; i < mining_threads; i++) {
cgpu = get_thr_cgpu(i);
for (i = 0; i < total_devices; i++) {
cgpu = get_devices(i);
if (cgpu && cgpu->usbinfo.nodev)
curses_print_devstatus(cgpu, count++);
}

Loading…
Cancel
Save