diff options
Diffstat (limited to 'src/mod_stats.erl')
-rw-r--r-- | src/mod_stats.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_stats.erl b/src/mod_stats.erl index 92a6627c5..2bdbdbd33 100644 --- a/src/mod_stats.erl +++ b/src/mod_stats.erl @@ -119,7 +119,7 @@ get_local_stat(Server, [], Name) get_local_stat(Server, [], Name) when Name == <<"users/total">> -> case catch - ejabberd_auth:get_vh_registered_users_number(Server) + ejabberd_auth:count_users(Server) of {'EXIT', _Reason} -> ?STATERR(500, <<"Internal Server Error">>); @@ -134,7 +134,7 @@ get_local_stat(_Server, [], Name) get_local_stat(_Server, [], Name) when Name == <<"users/all-hosts/total">> -> NumUsers = lists:foldl(fun (Host, Total) -> - ejabberd_auth:get_vh_registered_users_number(Host) + ejabberd_auth:count_users(Host) + Total end, 0, ?MYHOSTS), |