mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-30 08:24:26 +00:00
Remove start device limitation on log window size to allow it to get larger with hotplugged devices.
This commit is contained in:
parent
fc95c19165
commit
03305afbae
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user