Skip to content

Commit 67ca17c

Browse files
JulianKunkelglennklockwood
authored andcommitted
Bugfix by rmn1 for #147 and #112.
1 parent 7e357d3 commit 67ca17c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mdtest.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,11 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
23302330
}
23312331
if (items_per_dir > 0) {
23322332
if(items == 0){
2333-
items = items_per_dir * num_dirs_in_tree;
2333+
if (leaf_only) {
2334+
items = items_per_dir * (uint64_t) pow(branch_factor, depth);
2335+
} else {
2336+
items = items_per_dir * num_dirs_in_tree;
2337+
}
23342338
}else{
23352339
num_dirs_in_tree_calc = num_dirs_in_tree;
23362340
}

0 commit comments

Comments
 (0)