mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed folder progress calculation in torrent properties (closes #154387)
This commit is contained in:
parent
03719cbb87
commit
1519bca46d
3 changed files with 13 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue