diff --git a/fs/accounting/accounting.go b/fs/accounting/accounting.go index 8a541c9b1..1820b925f 100644 --- a/fs/accounting/accounting.go +++ b/fs/accounting/accounting.go @@ -138,6 +138,8 @@ func (acc *Account) UpdateReader(in io.ReadCloser) { acc.close = in acc.origIn = in acc.closed = false + acc.lpBytes = 0 + acc.bytes = int64(0) if withBuf { acc.WithBuffer() }