Skip to content

Commit

Permalink
Bugfix by rmn1 for #147 and #112.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKunkel authored and glennklockwood committed May 14, 2019
1 parent 7e357d3 commit 67ca17c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mdtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,11 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
}
if (items_per_dir > 0) {
if(items == 0){
items = items_per_dir * num_dirs_in_tree;
if (leaf_only) {
items = items_per_dir * (uint64_t) pow(branch_factor, depth);
} else {
items = items_per_dir * num_dirs_in_tree;
}
}else{
num_dirs_in_tree_calc = num_dirs_in_tree;
}
Expand Down

0 comments on commit 67ca17c

Please sign in to comment.