diff --git a/server/cmd/main.go b/server/cmd/main.go index 83a517d..43cf2e4 100644 --- a/server/cmd/main.go +++ b/server/cmd/main.go @@ -55,7 +55,7 @@ func main() { settings.HttpAuth = params.HttpAuth log.Init(params.LogPath, params.WebLogPath) fmt.Println("=========== START ===========") - fmt.Println("Go Ver:", runtime.Version()) + fmt.Println("Build Go version:", runtime.Version()) if params.HttpAuth { log.TLogln("Use HTTP Auth file", settings.Path+"/accs.db") } diff --git a/server/torr/storage/torrstor/cache.go b/server/torr/storage/torrstor/cache.go index 54474b8..1fe8bac 100644 --- a/server/torr/storage/torrstor/cache.go +++ b/server/torr/storage/torrstor/cache.go @@ -256,7 +256,7 @@ func (c *Cache) getRemPieces() []*Piece { for pc <= end && limit > 0 { if !c.pieces[pc].Complete { if c.torrent.PieceState(pc).Priority == torrent.PiecePriorityNone { - if limit = 1 { + if limit == 1 { c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityNext) } else if limit < 4 { c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityReadahead)