From 1ff39d7b85d945ccd3fd9b6d677b7b7903c50b5f Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 10 Aug 2023 10:38:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20ssh=20=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=97=A5=E5=BF=97=E5=88=86=E9=A1=B5=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20(#1901)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/ssh.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/service/ssh.go b/backend/app/service/ssh.go index 8cc2f9840..8737f5c87 100644 --- a/backend/app/service/ssh.go +++ b/backend/app/service/ssh.go @@ -276,8 +276,8 @@ func (u *SSHService) LoadLog(req dto.SearchSSHLog) (*dto.SSHLog, error) { dataItem, successCount, failedCount := loadSSHData(commandItem, showCountFrom, showCountTo, file.Year, qqWry, nyc) data.FailedCount += failedCount data.TotalCount += successCount + failedCount - showCountFrom = showCountFrom - data.TotalCount - showCountTo = showCountTo - data.TotalCount + showCountFrom = showCountFrom - (successCount + failedCount) + showCountTo = showCountTo - (successCount + failedCount) data.Logs = append(data.Logs, dataItem...) }