From 3387e1c07ca889e1f5eacef4ae477b5b86279ca7 Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Wed, 18 Aug 2021 05:08:30 +0300 Subject: [PATCH] fix typo --- server/cmd/main.go | 2 +- server/torr/storage/torrstor/cache.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)