- Fixed folder progress calculation in torrent properties (closes #154387)

This commit is contained in:
Christophe Dumez 2007-10-19 15:51:13 +00:00
parent 03719cbb87
commit 1519bca46d
3 changed files with 13 additions and 4 deletions

View file

@ -154,8 +154,8 @@ void bittorrent::updateETAs() {
Q_ASSERT(nbETAs);
foreach(val, listEtas) {
moy += (qlonglong)((double)val/(double)nbETAs);
Q_ASSERT(moy >= 0);
}
Q_ASSERT(moy >= 0);
ETAs[hash] = moy;
} else {
// Speed is too low, we don't want an overflow.