From da0124ca660eb1e2aa2b62dd2fdfd2c6157890e2 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 1 Sep 2022 11:20:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/api/v1/repo/cloudbrain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 8c638d6b5..75ddaf616 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -421,7 +421,7 @@ func CloudbrainGetLog(ctx *context.Context) { startLine := ctx.QueryInt("base_line") endLine := startLine + lines - if order == "asc" && (startLine-lines) > 0 { + if order == "asc" && (startLine-lines) >= 0 { endLine = startLine startLine = endLine - lines if startLine < 0 {