aboutsummaryrefslogtreecommitdiff
path: root/libpod/logs/reversereader/reversereader.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/logs/reversereader/reversereader.go')
-rw-r--r--libpod/logs/reversereader/reversereader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/logs/reversereader/reversereader.go b/libpod/logs/reversereader/reversereader.go
index 72d9ad975..4fa1a3f88 100644
--- a/libpod/logs/reversereader/reversereader.go
+++ b/libpod/logs/reversereader/reversereader.go
@@ -60,7 +60,7 @@ func (r *ReverseReader) Read() (string, error) {
if int64(n) < r.readSize {
b = b[0:n]
}
- // Set to the next page boundary
- r.offset = -r.readSize
+ // Move the offset one pagesize up
+ r.offset -= r.readSize
return string(b), nil
}