Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
change size to iolist_size /:
Browse files Browse the repository at this point in the history
  • Loading branch information
jkvor committed Jul 29, 2011
1 parent bc4867d commit fcc2dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logplex_drain_writer.erl
Expand Up @@ -67,7 +67,7 @@ send_packet(_TcpDrain, _UdpSocket, _Host, _Port, _Packet, Count) when Count < 0
send_packet(true = _TcpDrain, _UdpSocket, Host, Port, Packet, Count) ->
case tcp_socket(Host, Port) of
{ok, Sock} ->
case gen_tcp:send(Sock, [integer_to_list(size(Packet)), <<" ">>, Packet, <<"\n">>]) of
case gen_tcp:send(Sock, [integer_to_list(iolist_size(Packet)), <<" ">>, Packet, <<"\n">>]) of
ok ->
logplex_stats:incr(message_routed),
logplex_realtime:incr(message_routed);
Expand Down

0 comments on commit fcc2dab

Please sign in to comment.