clients/total, clients/max

This commit is contained in:
Ery Lee 2015-03-08 15:34:02 +08:00
parent 6f67127d77
commit dc8b7f032e
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ handle_call({register, ClientId, Pid}, _From, State) ->
{reply, ok, set_max(State)};
handle_call(stats, _From, State = #state{max = Max}) ->
Stats = [{total, ets:info(?TABLE, size)}, {max, Max}],
Stats = [{'clients/total', ets:info(?TABLE, size)},
{'clients/max', Max}],
{reply, Stats, State};
handle_call(_Request, _From, State) ->