Skip to content
Browse files

Fix stats to separate with CRLF instead of just LF.

  • Loading branch information...
1 parent 4339f80 commit b2df3ebfffa3331e7df730b437dacf94e67c866e @dustin committed Oct 29, 2008
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/lock_connection.erl
View
10 src/lock_connection.erl
@@ -29,9 +29,13 @@ lock_response(Socket, Key, R) ->
end.
format_stats(Stats) ->
- io_lib:format(
- "STATS~nSTAT clients ~p~nSTAT locks ~p~nSTAT monitoring ~p~nEND",
- [Stats#stats.clients, Stats#stats.locks, Stats#stats.monitoring]).
+ Lines = [
+ "STATS",
+ io_lib:format("STAT clients ~p", [Stats#stats.clients]),
+ io_lib:format("STAT locks ~p", [Stats#stats.locks]),
+ io_lib:format("STAT monitoring ~p", [Stats#stats.monitoring]),
+ "END"],
+ string:join(Lines, [13,10]).
% Commands go here.
process_command(Socket, "lock", [Key]) ->

0 comments on commit b2df3eb

Please sign in to comment.
Something went wrong with that request. Please try again.