1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Only show cpu algo in summary if cpu mining.

This commit is contained in:
Con Kolivas 2011-08-16 10:46:25 +10:00
parent cdece1f248
commit 939a0e02b7

3
main.c
View File

@ -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);