25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_admin_extra: Fix stats(_host) argument types

This commit is contained in:
Holger Weiss 2014-06-10 22:37:16 +02:00 committed by Badlop
parent 46b33b51b4
commit 4e9b4cbc11

View File

@ -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}}
].