From 994c0245c044e957f176cd2f1c75fc7763fabb96 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 15 Jun 2013 01:31:37 +1000 Subject: [PATCH] Don't display devices beyond the most_devices count in the curses status. --- cgminer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgminer.c b/cgminer.c index a27a2c5b..83e0740f 100644 --- a/cgminer.c +++ b/cgminer.c @@ -2100,6 +2100,9 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count) if (devcursor + count > LINES - 2) return; + if (count > most_devices) + return; + if (cgpu->dev_start_tv.tv_sec == 0) dev_runtime = total_secs; else {