Browse Source

fix issue

tags/v1.22.11.1^2
zhoupzh 3 years ago
parent
commit
c6c8a73be6
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      routers/api/v1/repo/cloudbrain.go

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

@@ -725,10 +725,10 @@ func getLogFromModelDir(jobName string, startLine int, endLine int, resultPath s
line, error := r.ReadString('\n')
if error == io.EOF {
if i >= startLine {
fileEndLine = i
re = re + line
count++
}
fileEndLine = i+1
log.Info("read file completed.")
break
}
@@ -738,12 +738,11 @@ func getLogFromModelDir(jobName string, startLine int, endLine int, resultPath s
}
if error == nil {
if i >= startLine {
fileEndLine = i
fileEndLine = i+1
re = re + line
count++
}
}
fileEndLine = fileEndLine + 1
}
} else {


Loading…
Cancel
Save