From 12045aae55c39a5f62c4cda47c136f1f8c6e7f1a Mon Sep 17 00:00:00 2001 From: Kano Date: Mon, 3 Jun 2013 12:26:50 +1000 Subject: [PATCH] devs display - fix GPU duplicate bug --- cgminer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cgminer.c b/cgminer.c index 8cebb2a1..d4bdd778 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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) 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++); }