mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix max size length
This commit is contained in:
@@ -37,7 +37,9 @@ func (p *DiskPiece) WriteAt(b []byte, off int64) (n int, err error) {
|
||||
|
||||
go p.piece.cache.LoadPiecesOnDisk()
|
||||
|
||||
p.piece.Size += int64(n)
|
||||
if p.piece.Size > p.piece.cache.pieceLength {
|
||||
p.piece.Size = p.piece.cache.pieceLength
|
||||
}
|
||||
p.piece.Accessed = time.Now().Unix()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user