BUGFIX: ETA was wrong for torrents with filtered files

This commit is contained in:
Christophe Dumez 2007-08-28 18:49:45 +00:00
parent 21908e0a03
commit cdfaed4fb4
3 changed files with 3 additions and 1 deletions

View file

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

1
TODO
View file

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

View file

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