From be6bb10540931ba6a06aefb72cd4a69c81b6f3c6 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 24 Jan 2012 14:54:15 -0500 Subject: [PATCH] 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 --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 1bc88408..a59641b1 100644 --- a/main.c +++ b/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); if (cgpu->api->get_statline_before) 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", opt_log_interval, cgpu->rolling, @@ -2123,6 +2125,9 @@ static void curses_print_devstatus(int thr_id) cgpu->api->get_statline_before(logline, cgpu); wprintw(statuswin, "%s", logline); } + else + wprintw(statuswin, " | "); + if (cgpu->status == LIFE_DEAD) wprintw(statuswin, "DEAD "); else if (cgpu->status == LIFE_SICK)