]> granicus.if.org Git - ejabberd/commitdiff
mod_admin_extra: Fix stats(_host) argument types
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 10 Jun 2014 20:37:16 +0000 (22:37 +0200)
committerBadlop <badlop@process-one.net>
Thu, 26 Mar 2015 13:00:30 +0000 (14:00 +0100)
src/mod_admin_extra.erl

index 71222badc5579037d11dfe5a68dcfbd08b2f7f45..63703ec4d0c717e49d8e7a89f044d43da1fb22c5 100644 (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}}
     ].