mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
revert update pause to 1 sec
This commit is contained in:
@@ -132,7 +132,7 @@ func (t *Torrent) AddExpiredTime(duration time.Duration) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *Torrent) watch() {
|
func (t *Torrent) watch() {
|
||||||
t.progressTicker = time.NewTicker(time.Millisecond * 250)
|
t.progressTicker = time.NewTicker(time.Second)
|
||||||
defer t.progressTicker.Stop()
|
defer t.progressTicker.Stop()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
@@ -323,7 +323,7 @@ func (t *Torrent) Preload(index int, size int64) {
|
|||||||
if isComplete {
|
if isComplete {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
time.Sleep(time.Millisecond * 10)
|
time.Sleep(time.Second)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.TLogln("End preload:", file.Torrent().InfoHash().HexString(), "Peers:[", t.Torrent.Stats().ConnectedSeeders, "]", t.Torrent.Stats().ActivePeers, "/", t.Torrent.Stats().TotalPeers)
|
log.TLogln("End preload:", file.Torrent().InfoHash().HexString(), "Peers:[", t.Torrent.Stats().ConnectedSeeders, "]", t.Torrent.Stats().ActivePeers, "/", t.Torrent.Stats().TotalPeers)
|
||||||
|
|||||||
Reference in New Issue
Block a user