mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: 解决 ssh 登录日志分页错误 (#1901)
This commit is contained in:
parent
b1f817f09b
commit
1ff39d7b85
@ -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...)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user