- BUGFIX: Fixed an ETA calculation problem when the torrent has filtered files

This commit is contained in:
Christophe Dumez 2007-10-10 19:10:34 +00:00
parent 0a0c1f3529
commit 0245bbf5ab
5 changed files with 7 additions and 6 deletions

View file

@ -148,7 +148,7 @@ void bittorrent::updateETAs() {
listEtas.removeFirst();
}
if(h.download_payload_rate()) {
listEtas << (qlonglong)((h.actual_size()-h.total_done())/(double)h.download_payload_rate());
listEtas << (qlonglong)((h.actual_size()-h.total_wanted_done())/(double)h.download_payload_rate());
ETAstats[hash] = listEtas;
qlonglong moy = 0;
qlonglong val;