How many attempts have I made to fix this bug?

This commit is contained in:
blank X 2021-04-08 22:15:59 +07:00
parent dc1d036f02
commit 4f5920866a
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class CappedBufferedReader(io.BufferedReader):
elif whence == os.SEEK_SET:
current_pos = self.tell()
if current_pos > offset:
self.capped_size += current_pos - offset
self.capped_size += current_pos
return super().seek(offset, whence)
@property