mod_statsdx: Fix traffic statistics

This commit is contained in:
Holger Weiss 2015-02-15 00:08:52 +01:00
parent 0ba0639ec5
commit 4b82d830c4
1 changed files with 6 additions and 6 deletions

View File

@ -235,9 +235,9 @@ user_send_packet_traffic(FromJID, ToJID, NewEl) ->
HostTo = ToJID#jid.lserver,
{xmlel, Type, _, _} = NewEl,
Type2 = case Type of
"iq" -> iq;
"message" -> message;
"presence" -> presence
<<"iq">> -> iq;
<<"message">> -> message;
<<"presence">> -> presence
end,
Dest = case is_host(HostTo, Host) of
true -> in;
@ -252,9 +252,9 @@ user_receive_packet_traffic(_JID, From, To, FixedPacket) ->
Host = To#jid.lserver,
{xmlel, Type, _, _} = FixedPacket,
Type2 = case Type of
"iq" -> iq;
"message" -> message;
"presence" -> presence
<<"iq">> -> iq;
<<"message">> -> message;
<<"presence">> -> presence
end,
Dest = case is_host(HostFrom, Host) of
true -> in;