client -> clients
This commit is contained in:
parent
9162e57707
commit
e2c1eda808
|
@ -175,10 +175,10 @@ insert(ClientId, Pid) ->
|
|||
|
||||
setstats(State = #state{max = Max}) ->
|
||||
Count = ets:info(?CLIENT_TAB, size),
|
||||
emqtt_broker:setstat('client/count', Count),
|
||||
emqtt_broker:setstat('clients/count', Count),
|
||||
if
|
||||
Count > Max ->
|
||||
emqtt_broker:setstat('client/max', Count),
|
||||
emqtt_broker:setstat('clients/max', Count),
|
||||
State#state{max = Count};
|
||||
true ->
|
||||
State
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
{i, "include"},
|
||||
{src_dirs, ["src"]}]}.
|
||||
|
||||
{eunit_opts, [verbose]}.
|
||||
|
||||
{xref_checks, [undefined_function_calls]}.
|
||||
{cover_enabled, false}.
|
||||
|
||||
|
@ -19,6 +21,8 @@
|
|||
"rel",
|
||||
"apps/emqtt"]}.
|
||||
|
||||
{lib_dirs, ["apps/emqtt"]}.
|
||||
|
||||
{deps, [
|
||||
{lager, ".*", {git, "git://github.com/basho/lager.git", {branch, "master"}}},
|
||||
{esockd, ".*", {git, "git://github.com/emqtt/esockd.git", {branch, "master"}}},
|
||||
|
|
Loading…
Reference in New Issue