From e23bf94c5703dca8971b3a4390ce5f12a75b5a45 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 10 Jun 2014 22:37:16 +0200 Subject: [PATCH] mod_admin_extra: Fix stats(_host) argument types --- mod_admin_extra/src/mod_admin_extra.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_admin_extra/src/mod_admin_extra.erl b/mod_admin_extra/src/mod_admin_extra.erl index 71222ba..63703ec 100644 --- a/mod_admin_extra/src/mod_admin_extra.erl +++ b/mod_admin_extra/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}} ].