mod_admin_extra: Fix stats(_host) argument types
This commit is contained in:
parent
73b7c2e81a
commit
e23bf94c57
|
@ -532,12 +532,12 @@ commands() ->
|
||||||
#ejabberd_commands{name = stats, tags = [stats],
|
#ejabberd_commands{name = stats, tags = [stats],
|
||||||
desc = "Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds",
|
desc = "Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds",
|
||||||
module = ?MODULE, function = stats,
|
module = ?MODULE, function = stats,
|
||||||
args = [{name, string}],
|
args = [{name, binary}],
|
||||||
result = {stat, integer}},
|
result = {stat, integer}},
|
||||||
#ejabberd_commands{name = stats_host, tags = [stats],
|
#ejabberd_commands{name = stats_host, tags = [stats],
|
||||||
desc = "Get statistical value for this host: registeredusers onlineusers",
|
desc = "Get statistical value for this host: registeredusers onlineusers",
|
||||||
module = ?MODULE, function = stats,
|
module = ?MODULE, function = stats,
|
||||||
args = [{name, string}, {host, string}],
|
args = [{name, binary}, {host, binary}],
|
||||||
result = {stat, integer}}
|
result = {stat, integer}}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue