Commit 939a0e02b7c0233b88040068dc892b62e4b7b9b7

Con Kolivas 2011-08-16T10:46:25

Only show cpu algo in summary if cpu mining.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/main.c b/main.c
index 3689055..a18cf47 100644
--- a/main.c
+++ b/main.c
@@ -4099,7 +4099,8 @@ static void print_summary(void)
 
 	printf("\nSummary of runtime statistics:\n\n");
 	printf("Started at %s\n", datestamp);
-	printf("CPU hasher algorithm used: %s\n", algo_names[opt_algo]);
+	if (opt_n_threads)
+		printf("CPU hasher algorithm used: %s\n", algo_names[opt_algo]);
 	printf("Runtime: %d hrs : %d mins : %d secs\n", hours, mins, secs);
 	if (total_secs)
 		printf("Average hashrate: %.1f Megahash/s\n", total_mhashes_done / total_secs);