mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Increase maximum number of displayed devices to 14, beyond which the screen becomes corrupted.
This commit is contained in:
parent
c3ef4912dd
commit
b80d22b9d2
@ -1273,7 +1273,7 @@ static void curses_print_devstatus(int thr_id)
|
|||||||
char logline[255];
|
char logline[255];
|
||||||
|
|
||||||
cgpu->utility = cgpu->accepted / ( total_secs ? total_secs : 1 ) * 60;
|
cgpu->utility = cgpu->accepted / ( total_secs ? total_secs : 1 ) * 60;
|
||||||
if (total_devices > 8)
|
if (total_devices > 14)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mvwprintw(statuswin, devcursor + cgpu->cgminer_id, 0, " %s %d: ", cgpu->api->name, cgpu->device_id);
|
mvwprintw(statuswin, devcursor + cgpu->cgminer_id, 0, " %s %d: ", cgpu->api->name, cgpu->device_id);
|
||||||
@ -4613,7 +4613,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
load_temp_cutoffs();
|
load_temp_cutoffs();
|
||||||
|
|
||||||
if (total_devices <= 8) {
|
if (total_devices <= 14) {
|
||||||
logstart += total_devices;
|
logstart += total_devices;
|
||||||
} else {
|
} else {
|
||||||
applog(LOG_NOTICE, "Too many devices exist for per-device status lines");
|
applog(LOG_NOTICE, "Too many devices exist for per-device status lines");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user