This commit is contained in:
Ery Lee 2015-04-07 17:19:51 +08:00
parent 4ab10e191a
commit 33be1a87e6
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ init([]) ->
handle_call(getstats, _From, State = #state{max_subs = Max}) ->
Stats = [{'topics/count', mnesia:table_info(topic, size)},
{'subscribers/count', mnesia:info(topic_subscriber, size)},
{'subscribers/count', mnesia:table_info(topic_subscriber, size)},
{'subscribers/max', Max}],
{reply, Stats, State};