Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel committed Aug 12, 2024
1 parent 32f4c5f commit c04a239
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2937,8 +2937,9 @@ func (r *AnalysisReader) open(path, begin, end string) (reader io.ReadCloser, er
return
}
r.begin = r.begin + int64(len(begin))
r.begin += 1
r.begin++
r.read = r.end - r.begin
r.read++
r.file, err = os.Open(path)
if err != nil {
return
Expand All @@ -2956,6 +2957,7 @@ func (r *AnalysisReader) Read(b []byte) (n int, err error) {
}
if int64(n) > r.read {
n = int(r.read)
b = b[:n]
}
r.read -= int64(n)
if n < 1 {
Expand Down

0 comments on commit c04a239

Please sign in to comment.