client -> clients

This commit is contained in:
Ery Lee 2015-03-09 14:05:02 +08:00
parent 9162e57707
commit e2c1eda808
2 changed files with 6 additions and 2 deletions

View File

@ -175,10 +175,10 @@ insert(ClientId, Pid) ->
setstats(State = #state{max = Max}) -> setstats(State = #state{max = Max}) ->
Count = ets:info(?CLIENT_TAB, size), Count = ets:info(?CLIENT_TAB, size),
emqtt_broker:setstat('client/count', Count), emqtt_broker:setstat('clients/count', Count),
if if
Count > Max -> Count > Max ->
emqtt_broker:setstat('client/max', Count), emqtt_broker:setstat('clients/max', Count),
State#state{max = Count}; State#state{max = Count};
true -> true ->
State State

View File

@ -10,6 +10,8 @@
{i, "include"}, {i, "include"},
{src_dirs, ["src"]}]}. {src_dirs, ["src"]}]}.
{eunit_opts, [verbose]}.
{xref_checks, [undefined_function_calls]}. {xref_checks, [undefined_function_calls]}.
{cover_enabled, false}. {cover_enabled, false}.
@ -19,6 +21,8 @@
"rel", "rel",
"apps/emqtt"]}. "apps/emqtt"]}.
{lib_dirs, ["apps/emqtt"]}.
{deps, [ {deps, [
{lager, ".*", {git, "git://github.com/basho/lager.git", {branch, "master"}}}, {lager, ".*", {git, "git://github.com/basho/lager.git", {branch, "master"}}},
{esockd, ".*", {git, "git://github.com/emqtt/esockd.git", {branch, "master"}}}, {esockd, ".*", {git, "git://github.com/emqtt/esockd.git", {branch, "master"}}},