mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-21 22:46:09 +05:00
dynamically adjust readahead, for nearly sequential download
This commit is contained in:
@@ -211,3 +211,10 @@ func (c *Cache) ReadersLen() int {
|
||||
}
|
||||
return len(c.readers)
|
||||
}
|
||||
|
||||
func (c *Cache) AdjustRA(readahead int64) {
|
||||
for r, _ := range c.readers {
|
||||
r.SetReadahead(readahead)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user