mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fix typo
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user