From cdfaed4fb42f815889479ae2f7151dd0a1766ac3 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 28 Aug 2007 18:49:45 +0000 Subject: [PATCH] BUGFIX: ETA was wrong for torrents with filtered files --- Changelog | 1 + TODO | 1 + src/bittorrent.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 4803a0ece..e221b4b2c 100644 --- a/Changelog +++ b/Changelog @@ -51,6 +51,7 @@ - BUGFIX: Improved unicode support - BUGFIX: Made torrent deletion from hard-drive safer - BUGFIX: Prevent downloadFromUrl flooding + - BUGFIX: ETA was wrong for torrents with filtered files - COSMETIC: Redesigned torrent properties a little - COSMETIC: Redesigned options a little - COSMETIC: Display more logs messages concerning features diff --git a/TODO b/TODO index bf453e922..a2888e9c9 100644 --- a/TODO +++ b/TODO @@ -82,5 +82,6 @@ beta5->beta6 changelog: - BUGFIX: Made finished list context menu more similar to the download list one - BUGFIX: Fixed Pause/Start action in lists context menus - BUGFIX: Improved ETA calculation +- BUGFIX: ETA was wrong for torrents with filtered files - BUGFIX: Display the torrent that are being checked as 'checking' in seeding list - I18N: Removed no longer maintained Traditional chinese translation \ No newline at end of file diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 0d4e2856e..99e71d692 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -117,7 +117,7 @@ void bittorrent::updateETAs() { listEtas.removeFirst(); } if(h.download_payload_rate()) { - listEtas << (qlonglong)((h.total_size()-h.total_done())/(double)h.download_payload_rate()); + listEtas << (qlonglong)((h.actual_size()-h.total_done())/(double)h.download_payload_rate()); ETAstats[hash] = listEtas; long moy = 0; long val;