From 4b82d830c42aa71bc8c2fe0f506262664ff07dd5 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sun, 15 Feb 2015 00:08:52 +0100 Subject: [PATCH] mod_statsdx: Fix traffic statistics --- mod_statsdx/src/mod_statsdx.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod_statsdx/src/mod_statsdx.erl b/mod_statsdx/src/mod_statsdx.erl index 8da0b1e..b1108bf 100644 --- a/mod_statsdx/src/mod_statsdx.erl +++ b/mod_statsdx/src/mod_statsdx.erl @@ -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;