tweak: add return to print function
This commit is contained in:
parent
1521030421
commit
e61918f107
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user