fix(gw_ocpp): subscriptions cnt

This commit is contained in:
JimMoen 2023-12-20 01:26:44 +08:00
parent d37c5cc798
commit 578a231a8d
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
1 changed files with 3 additions and 3 deletions

View File

@ -186,10 +186,10 @@ info(timers, #channel{timers = Timers}) ->
-spec stats(channel()) -> emqx_types:stats().
stats(#channel{mqueue = MQueue}) ->
%% XXX:
%% XXX: A fake stats for managed by emqx_management
SessionStats = [
{subscriptions_cnt, 0},
{subscriptions_max, 0},
{subscriptions_cnt, 1},
{subscriptions_max, 1},
{inflight_cnt, 0},
{inflight_max, 0},
{mqueue_len, queue:len(MQueue)},