Browse Source

Remove start device limitation on log window size to allow it to get larger with hotplugged devices.

Con Kolivas 12 years ago
parent
commit
03305afbae
1 changed files with 1 additions and 4 deletions
  1. 1 4
      cgminer.c

+ 1 - 4
cgminer.c

@@ -180,7 +180,6 @@ static int total_control_threads;
 bool hotplug_mode;
 bool hotplug_mode;
 static int new_devices;
 static int new_devices;
 static int new_threads;
 static int new_threads;
-static int start_devices;
 int hotplug_time = 5;
 int hotplug_time = 5;
 
 
 #ifdef USE_USBUTILS
 #ifdef USE_USBUTILS
@@ -2077,7 +2076,7 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count)
 	if (opt_compact)
 	if (opt_compact)
 		return;
 		return;
 
 
-	if (count >= start_devices || devcursor + count > LINES - 2)
+	if (devcursor + count > LINES - 2)
 		return;
 		return;
 
 
 	cgpu->utility = cgpu->accepted / total_secs * 60;
 	cgpu->utility = cgpu->accepted / total_secs * 60;
@@ -7528,8 +7527,6 @@ int main(int argc, char *argv[])
 		quit(1, "All devices disabled, cannot mine!");
 		quit(1, "All devices disabled, cannot mine!");
 #endif
 #endif
 
 
-	start_devices = total_devices;
-
 	load_temp_cutoffs();
 	load_temp_cutoffs();
 
 
 	for (i = 0; i < total_devices; ++i)
 	for (i = 0; i < total_devices; ++i)