tweak: add return to print function

This commit is contained in:
NunoSempere 2023-11-19 17:57:46 +00:00
parent 1521030421
commit e61918f107

View File

@ -24,6 +24,6 @@ int main()
int n_samples = 1000 * 1000, n_threads = 16;
double* results = malloc(n_samples * sizeof(double));
parallel_sampler(sampler_result, results, n_threads, n_samples);
printf("Avg: %f", array_sum(results, n_samples)/n_samples);
printf("Avg: %f\n", array_sum(results, n_samples)/n_samples);
free(results);
}