Skip to content

Commit

Permalink
downloader stuck on 99.9% fix #4004
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Apr 28, 2022
1 parent c6649f5 commit d2ce562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/downloader/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func (cli *Protocols) ReCalcStats(interval time.Duration) {
torrents := cli.TorrentClient.Torrents()
connStats := cli.TorrentClient.ConnStats()

stats.Completed = true
stats.BytesRead = uint64(connStats.BytesReadUsefulIntendedData.Int64())
stats.BytesWritten = uint64(connStats.BytesWrittenData.Int64())

Expand Down

0 comments on commit d2ce562

Please sign in to comment.