Browse Source

Don't display devices beyond the most_devices count in the curses status.

Con Kolivas 12 years ago
parent
commit
994c0245c0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cgminer.c

+ 3 - 0
cgminer.c

@@ -2100,6 +2100,9 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count)
 	if (devcursor + count > LINES - 2)
 	if (devcursor + count > LINES - 2)
 		return;
 		return;
 
 
+	if (count > most_devices)
+		return;
+
 	if (cgpu->dev_start_tv.tv_sec == 0)
 	if (cgpu->dev_start_tv.tv_sec == 0)
 		dev_runtime = total_secs;
 		dev_runtime = total_secs;
 	else {
 	else {