mod_statsdx: Fix vCard statistics

This commit is contained in:
Holger Weiss 2015-02-15 00:13:45 +01:00
parent 4b82d830c4
commit f445f6aa31
1 changed files with 2 additions and 2 deletions

View File

@ -1685,8 +1685,8 @@ get_users_vcard_fun(#vcard{us = {_, Host1}}, {HostReq, NumRemaining, MinSize, Si
when (Host1 /= HostReq) and (HostReq /= server) -> when (Host1 /= HostReq) and (HostReq /= server) ->
{HostReq, NumRemaining, MinSize, Sizes, Selects}; {HostReq, NumRemaining, MinSize, Sizes, Selects};
get_users_vcard_fun(Vcard, {HostReq, NumRemaining, MinSize, Sizes, Selects}) -> get_users_vcard_fun(Vcard, {HostReq, NumRemaining, MinSize, Sizes, Selects}) ->
String = lists:flatten(xml:element_to_string(Vcard#vcard.vcard)), Binary = xml:element_to_binary(Vcard#vcard.vcard),
Size = length(String), Size = byte_size(Binary),
case {Size > MinSize, NumRemaining > 0} of case {Size > MinSize, NumRemaining > 0} of
{true, true} -> {true, true} ->
{User, Host} = Vcard#vcard.us, {User, Host} = Vcard#vcard.us,