Skip to content

Commit

Permalink
Merge pull request #194 from fogfish/master
Browse files Browse the repository at this point in the history
fix: broken csv writer
  • Loading branch information
slfritchie committed Dec 10, 2015
2 parents f941cfd + a3f0235 commit b8f1e31
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/basho_bench_stats.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b8f1e31

Please sign in to comment.