mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
optimize
This commit is contained in:
@@ -109,8 +109,9 @@ func (c *Cache) GetState() state.CacheState {
|
||||
return cState
|
||||
}
|
||||
|
||||
func (c *Cache) setPos(pos int) {
|
||||
c.position = (c.position + pos) / 2
|
||||
func (c *Cache) SetPos(pos int) {
|
||||
//c.position = (c.position + pos) / 2
|
||||
c.position = pos
|
||||
//fmt.Println("Read:", c.position)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user