Skip to content

Commit

Permalink
Fix stats to separate with CRLF instead of just LF.
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Oct 30, 2008
1 parent 4339f80 commit b2df3eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/lock_connection.erl
Expand Up @@ -29,9 +29,13 @@ lock_response(Socket, Key, R) ->
end. end.


format_stats(Stats) -> format_stats(Stats) ->
io_lib:format( Lines = [
"STATS~nSTAT clients ~p~nSTAT locks ~p~nSTAT monitoring ~p~nEND", "STATS",
[Stats#stats.clients, Stats#stats.locks, Stats#stats.monitoring]). 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. % Commands go here.
process_command(Socket, "lock", [Key]) -> process_command(Socket, "lock", [Key]) ->
Expand Down

0 comments on commit b2df3eb

Please sign in to comment.