From 33f8742ad1be707bfb7f3975e1c52982bbdca21c Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 31 Oct 2023 14:28:36 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_statistics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/websocket/internal/logic/ws_statistics.go b/server/websocket/internal/logic/ws_statistics.go index 9914df2e..176ee2a5 100644 --- a/server/websocket/internal/logic/ws_statistics.go +++ b/server/websocket/internal/logic/ws_statistics.go @@ -96,7 +96,7 @@ func ConsumeWebsocketStatData(ctx context.Context) { if ok { //存在就累加 mapUserWsStat.Store(key, statCount.(int)+data.Value) } else { //不存在就赋值 - mapUserWsStat.Store(key, statCount.(int)) + mapUserWsStat.Store(key, data.Value) } currentWebsocketConnectCount += data.Value case TYPE_COMBINE_IMAGE_REQUEST_COUNT: //请求算法合图计数