From 34a16170a3136c641bab3270eb8136fa14fc6e7a Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 28 Apr 2022 09:28:01 +0700 Subject: [PATCH] save --- cmd/downloader/downloader/downloader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/downloader/downloader/downloader.go b/cmd/downloader/downloader/downloader.go index a28d58f603e..29bd57a235b 100644 --- a/cmd/downloader/downloader/downloader.go +++ b/cmd/downloader/downloader/downloader.go @@ -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())