Commit c53a7b0d2d289001ac479aa7ac73c96dd5cb4fab

Con Kolivas 2011-08-16T10:26:42

Only display the CPU algo when we're CPU mining.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/main.c b/main.c
index 346e1dc..c54e13b 100644
--- a/main.c
+++ b/main.c
@@ -1312,7 +1312,9 @@ static void curses_print_status(int thr_id)
 
 	wmove(statuswin, 0, 0);
 	wattron(statuswin, A_BOLD);
-	wprintw(statuswin, " " PROGRAM_NAME " version " VERSION " - Started: %s CPU Algo: %s", datestamp, algo_names[opt_algo]);
+	wprintw(statuswin, " " PROGRAM_NAME " version " VERSION " - Started: %s", datestamp);
+	if (opt_n_threads)
+		wprintw(statuswin, " CPU Algo: %s", algo_names[opt_algo]);
 	wattroff(statuswin, A_BOLD);
 	wmove(statuswin, 1, 0);
 	whline(statuswin, '-', 80);