fix(sessds): Return the number of subscriptions for offline sessions
This commit is contained in:
parent
e439a2e0f2
commit
38a2e8add9
|
@ -1768,7 +1768,8 @@ format_persistent_session_info(ClientId, PSInfo0) ->
|
||||||
heap_size => 0,
|
heap_size => 0,
|
||||||
mqueue_len => 0,
|
mqueue_len => 0,
|
||||||
proto_name => ProtoName,
|
proto_name => ProtoName,
|
||||||
proto_ver => ProtoVer
|
proto_ver => ProtoVer,
|
||||||
|
subscriptions_cnt => maps:size(maps:get(subscriptions, PSInfo0, #{}))
|
||||||
},
|
},
|
||||||
PSInfo = lists:foldl(
|
PSInfo = lists:foldl(
|
||||||
fun result_format_time_fun/2,
|
fun result_format_time_fun/2,
|
||||||
|
|
Loading…
Reference in New Issue