From 2d79efc0c5fd0cbbb0f4a5dff62a9b41a214068a Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Thu, 5 Nov 2020 19:13:08 +0000 Subject: [PATCH] Fix wait issue on MacOS --- src/md-workbench.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/md-workbench.c b/src/md-workbench.c index ed9ec4e..34dfa01 100644 --- a/src/md-workbench.c +++ b/src/md-workbench.c @@ -144,7 +144,7 @@ void init_options(){ o.run_info_file = "md-workbench.status"; } -static void wait(double runtime){ +static void mdw_wait(double runtime){ double waittime = runtime * o.relative_waiting_factor; //printf("waittime: %e\n", waittime); if(waittime < 0.01){ @@ -617,7 +617,7 @@ void run_benchmark(phase_stat_t * s, int * current_index_p){ bench_runtime = add_timed_result(op_timer, s->phase_start_timer, s->time_stat, pos, & s->max_op_time, & op_time); if(o.relative_waiting_factor > 1e-9) { - wait(op_time); + mdw_wait(op_time); } if (o.verbosity >= 2){ @@ -651,7 +651,7 @@ void run_benchmark(phase_stat_t * s, int * current_index_p){ bench_runtime = add_timed_result(op_timer, s->phase_start_timer, s->time_read, pos, & s->max_op_time, & op_time); if(o.relative_waiting_factor > 1e-9) { - wait(op_time); + mdw_wait(op_time); } if(o.read_only){ continue; @@ -661,7 +661,7 @@ void run_benchmark(phase_stat_t * s, int * current_index_p){ o.backend->delete(obj_name, o.backend_options); bench_runtime = add_timed_result(op_timer, s->phase_start_timer, s->time_delete, pos, & s->max_op_time, & op_time); if(o.relative_waiting_factor > 1e-9) { - wait(op_time); + mdw_wait(op_time); } if (o.verbosity >= 2){ @@ -689,7 +689,7 @@ void run_benchmark(phase_stat_t * s, int * current_index_p){ bench_runtime = add_timed_result(op_timer, s->phase_start_timer, s->time_create, pos, & s->max_op_time, & op_time); if(o.relative_waiting_factor > 1e-9) { - wait(op_time); + mdw_wait(op_time); } if (o.verbosity >= 2){