From a3f0235e398ceae4177d3561ee0db4122de2849d Mon Sep 17 00:00:00 2001 From: Dmitry Kolesnikov Date: Wed, 9 Dec 2015 11:21:36 +0200 Subject: [PATCH] fix: broken csv writer --- src/basho_bench_stats.erl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/basho_bench_stats.erl b/src/basho_bench_stats.erl index 8e4d06eb2..37993e6a3 100644 --- a/src/basho_bench_stats.erl +++ b/src/basho_bench_stats.erl @@ -165,8 +165,7 @@ terminate(_Reason, #state{stats_writer=Module}=State) -> process_stats(os:timestamp(), State), report_total_errors(State), - Module:terminate({State#state.stats_writer, - State#state.stats_writer_data}). + Module:terminate(State#state.stats_writer_data). code_change(_OldVsn, State, _Extra) -> {ok, State}. @@ -248,9 +247,8 @@ process_stats(Now, #state{stats_writer=Module}=State) -> [folsom_metrics_counter:dec({units, Op}, OpAmount) || {Op, OpAmount} <- OkOpsRes], %% Write summary - Module:process_summary({State#state.stats_writer, - State#state.stats_writer_data}, - Elapsed, Window, Oks, Errors), + Module:process_summary(State#state.stats_writer_data, + Elapsed, Window, Oks, Errors), %% Dump current error counts to console case (State#state.errors_since_last_report) of