Browse Source

Only show cpu algo in summary if cpu mining.

Con Kolivas 14 years ago
parent
commit
939a0e02b7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main.c

+ 2 - 1
main.c

@@ -4099,7 +4099,8 @@ static void print_summary(void)
 
 
 	printf("\nSummary of runtime statistics:\n\n");
 	printf("\nSummary of runtime statistics:\n\n");
 	printf("Started at %s\n", datestamp);
 	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);
 	printf("Runtime: %d hrs : %d mins : %d secs\n", hours, mins, secs);
 	if (total_secs)
 	if (total_secs)
 		printf("Average hashrate: %.1f Megahash/s\n", total_mhashes_done / total_secs);
 		printf("Average hashrate: %.1f Megahash/s\n", total_mhashes_done / total_secs);