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