rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

"Time left" indicator incorrect when doing partial downloads #1197

Open hackergrrl opened 1 year ago

hackergrrl commented 1 year ago

Running rTorrent 0.9.8/0.13.8.

I've noticed that when downloading a multi-file torrent, where I have only some of the files marked for download (high or normal priority; the rest as off), the "time left" text will compute it in such a way that it assumes that ALL files are to be downloaded. So, a 2.5GB torrent of 800MB files, downloading at 150kb/s, will show ~4.6 hours, even if I only am downloading a single 800MB file from that torrent.

It would be more helpful, to me at least, if the time indicator reflected only what is currently marked as to-download.

dchard commented 1 year ago

A bigger issue is that with a partial download, even when the selected files are downloaded completely, the torrent is marked as "downloading", and the client keeps the sockets open towards the other peers. In some cases this means tenths of unnecessary connections kept open forever.