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

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