revert update pause to 1 sec

This commit is contained in:
YouROK
2021-02-24 21:53:20 +03:00
parent d76142aeeb
commit 3fbb437695

View File

@@ -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)