mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-16 15:28:38 +00:00
perf: 修改在线数量
This commit is contained in:
@@ -153,7 +153,7 @@ class SessionViewSet(RecordViewLogMixin, OrgBulkModelViewSet):
|
||||
if asset is None or account is None:
|
||||
return Response({'count': None})
|
||||
|
||||
queryset = Session.objects.filter(is_finished=True) \
|
||||
queryset = Session.objects.filter(is_finished=False) \
|
||||
.filter(asset_id=asset) \
|
||||
.filter(protocol='rdp') # 当前只统计 rdp 协议的会话
|
||||
if '(' in account and ')' in account:
|
||||
|
Reference in New Issue
Block a user