fix session stats
This commit is contained in:
parent
dcc378150d
commit
988e61708d
|
@ -193,5 +193,5 @@ new_session(CleanSess, ClientId, ClientPid) ->
|
|||
|
||||
setstats(State = #state{statsfun = {CFun, SFun}}) ->
|
||||
CFun(ets:info(?SESSION_TAB, size)),
|
||||
SFun(ets:select_count(?SESSION_TAB, [{{true, '_', '_', '_'}, [], [true]}])),
|
||||
SFun(ets:select_count(?SESSION_TAB, [{{false, '_', '_', '_'}, [], [true]}])),
|
||||
State.
|
||||
|
|
Loading…
Reference in New Issue