1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 16:58:05 +00:00

Don't display devices beyond the most_devices count in the curses status.

This commit is contained in:
Con Kolivas 2013-06-15 01:31:37 +10:00
parent cd9ff7f6b8
commit 994c0245c0

View File

@ -2100,6 +2100,9 @@ static void curses_print_devstatus(struct cgpu_info *cgpu, int count)
if (devcursor + count > LINES - 2) if (devcursor + count > LINES - 2)
return; return;
if (count > most_devices)
return;
if (cgpu->dev_start_tv.tv_sec == 0) if (cgpu->dev_start_tv.tv_sec == 0)
dev_runtime = total_secs; dev_runtime = total_secs;
else { else {