This commit is contained in:
nikk gitanes
2021-08-18 05:08:30 +03:00
parent abc3b8df56
commit 3387e1c07c
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ func main() {
settings.HttpAuth = params.HttpAuth settings.HttpAuth = params.HttpAuth
log.Init(params.LogPath, params.WebLogPath) log.Init(params.LogPath, params.WebLogPath)
fmt.Println("=========== START ===========") fmt.Println("=========== START ===========")
fmt.Println("Go Ver:", runtime.Version()) fmt.Println("Build Go version:", runtime.Version())
if params.HttpAuth { if params.HttpAuth {
log.TLogln("Use HTTP Auth file", settings.Path+"/accs.db") log.TLogln("Use HTTP Auth file", settings.Path+"/accs.db")
} }

View File

@@ -256,7 +256,7 @@ func (c *Cache) getRemPieces() []*Piece {
for pc <= end && limit > 0 { for pc <= end && limit > 0 {
if !c.pieces[pc].Complete { if !c.pieces[pc].Complete {
if c.torrent.PieceState(pc).Priority == torrent.PiecePriorityNone { if c.torrent.PieceState(pc).Priority == torrent.PiecePriorityNone {
if limit = 1 { if limit == 1 {
c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityNext) c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityNext)
} else if limit < 4 { } else if limit < 4 {
c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityReadahead) c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityReadahead)