This commit is contained in:
yourok
2019-09-20 13:17:00 +03:00
parent 8fe294b201
commit fa40557bfb

View File

@@ -109,8 +109,9 @@ func (c *Cache) GetState() state.CacheState {
return cState return cState
} }
func (c *Cache) setPos(pos int) { func (c *Cache) SetPos(pos int) {
c.position = (c.position + pos) / 2 //c.position = (c.position + pos) / 2
c.position = pos
//fmt.Println("Read:", c.position) //fmt.Println("Read:", c.position)
} }