mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-07 17:10:07 +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)
|
dataItem, successCount, failedCount := loadSSHData(commandItem, showCountFrom, showCountTo, file.Year, qqWry, nyc)
|
||||||
data.FailedCount += failedCount
|
data.FailedCount += failedCount
|
||||||
data.TotalCount += successCount + failedCount
|
data.TotalCount += successCount + failedCount
|
||||||
showCountFrom = showCountFrom - data.TotalCount
|
showCountFrom = showCountFrom - (successCount + failedCount)
|
||||||
showCountTo = showCountTo - data.TotalCount
|
showCountTo = showCountTo - (successCount + failedCount)
|
||||||
data.Logs = append(data.Logs, dataItem...)
|
data.Logs = append(data.Logs, dataItem...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user