mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix buffer size
This commit is contained in:
@@ -32,7 +32,7 @@ func (p *Piece) WriteAt(b []byte, off int64) (n int, err error) {
|
|||||||
|
|
||||||
if p.buffer == nil {
|
if p.buffer == nil {
|
||||||
go p.cache.cleanPieces()
|
go p.cache.cleanPieces()
|
||||||
p.buffer = make([]byte, p.cache.pieceLength)
|
p.buffer = make([]byte, p.cache.pieceLength, p.cache.pieceLength)
|
||||||
}
|
}
|
||||||
n = copy(p.buffer[off:], b[:])
|
n = copy(p.buffer[off:], b[:])
|
||||||
p.Size += int64(n)
|
p.Size += int64(n)
|
||||||
|
|||||||
Reference in New Issue
Block a user