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 committed May 14, 2019
1 parent a9b0bf3 commit 30a1ca1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mdtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ void mdtest_stat(const int random, const int dirs, const long dir_iter, const ch

uint64_t stop_items = items;

if( directory_loops != 1 || leaf_only ){
if( directory_loops != 1 ){
stop_items = items_per_dir;
}

Expand Down Expand Up @@ -2270,7 +2270,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 30a1ca1

Please sign in to comment.