Browse Source

修复日志显示问题

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.9.1^2
zouap 3 years ago
parent
commit
da0124ca66
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/api/v1/repo/cloudbrain.go

+ 1
- 1
routers/api/v1/repo/cloudbrain.go View File

@@ -421,7 +421,7 @@ func CloudbrainGetLog(ctx *context.Context) {
startLine := ctx.QueryInt("base_line") startLine := ctx.QueryInt("base_line")
endLine := startLine + lines endLine := startLine + lines


if order == "asc" && (startLine-lines) > 0 {
if order == "asc" && (startLine-lines) >= 0 {
endLine = startLine endLine = startLine
startLine = endLine - lines startLine = endLine - lines
if startLine < 0 { if startLine < 0 {


Loading…
Cancel
Save