mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
Bugfix: Leave blank space where temperatures and fan speed go for devices that don't support it (ie, CPUs), so the rest of the data lines up
This commit is contained in:
parent
9549dacf99
commit
be6bb10540
5
main.c
5
main.c
@ -2045,6 +2045,8 @@ static void get_statline(char *buf, struct cgpu_info *cgpu)
|
|||||||
sprintf(buf, "%s%d ", cgpu->api->name, cgpu->device_id);
|
sprintf(buf, "%s%d ", cgpu->api->name, cgpu->device_id);
|
||||||
if (cgpu->api->get_statline_before)
|
if (cgpu->api->get_statline_before)
|
||||||
cgpu->api->get_statline_before(buf, cgpu);
|
cgpu->api->get_statline_before(buf, cgpu);
|
||||||
|
else
|
||||||
|
tailsprintf(buf, " | ");
|
||||||
tailsprintf(buf, "(%ds):%.1f (avg):%.1f Mh/s | A:%d R:%d HW:%d U:%.2f/m",
|
tailsprintf(buf, "(%ds):%.1f (avg):%.1f Mh/s | A:%d R:%d HW:%d U:%.2f/m",
|
||||||
opt_log_interval,
|
opt_log_interval,
|
||||||
cgpu->rolling,
|
cgpu->rolling,
|
||||||
@ -2123,6 +2125,9 @@ static void curses_print_devstatus(int thr_id)
|
|||||||
cgpu->api->get_statline_before(logline, cgpu);
|
cgpu->api->get_statline_before(logline, cgpu);
|
||||||
wprintw(statuswin, "%s", logline);
|
wprintw(statuswin, "%s", logline);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
wprintw(statuswin, " | ");
|
||||||
|
|
||||||
if (cgpu->status == LIFE_DEAD)
|
if (cgpu->status == LIFE_DEAD)
|
||||||
wprintw(statuswin, "DEAD ");
|
wprintw(statuswin, "DEAD ");
|
||||||
else if (cgpu->status == LIFE_SICK)
|
else if (cgpu->status == LIFE_SICK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user