From: Holger Weiss Date: Tue, 10 Jun 2014 20:37:16 +0000 (+0200) Subject: mod_admin_extra: Fix stats(_host) argument types X-Git-Tag: 15.04~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e9b4cbc11b17087d432d19bba38aff1558e5a98;p=ejabberd mod_admin_extra: Fix stats(_host) argument types --- diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 71222badc..63703ec4d 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -532,12 +532,12 @@ commands() -> #ejabberd_commands{name = stats, tags = [stats], desc = "Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds", module = ?MODULE, function = stats, - args = [{name, string}], + args = [{name, binary}], result = {stat, integer}}, #ejabberd_commands{name = stats_host, tags = [stats], desc = "Get statistical value for this host: registeredusers onlineusers", module = ?MODULE, function = stats, - args = [{name, string}, {host, string}], + args = [{name, binary}, {host, binary}], result = {stat, integer}} ].