mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Change share ratio calculation to use the total done instead of the all time downloaded value. This change will make the share ratio calculation not use data downloaded in failed hash checks.
This commit is contained in:
parent
886f2d8682
commit
ac857eaef7
2 changed files with 4 additions and 3 deletions
|
@ -3,6 +3,9 @@
|
|||
* Fix file renaming
|
||||
* Fix tracker host filtering (Closes #1106)
|
||||
* Fix exceptions when gettext/locale cannot be initialized properly
|
||||
* Change share ratio calculation to use the total done instead of the all time
|
||||
downloaded value. This change will make the share ratio calculation not
|
||||
use data downloaded in failed hash checks.
|
||||
|
||||
==== GtkUI ====
|
||||
* Fix #1104, #735 use path.utf-8 if available
|
||||
|
|
|
@ -411,9 +411,7 @@ class Torrent:
|
|||
else:
|
||||
status = self.status
|
||||
|
||||
if status.all_time_download > 0:
|
||||
downloaded = status.all_time_download
|
||||
elif status.total_done > 0:
|
||||
if status.total_done > 0:
|
||||
# We use 'total_done' if the downloaded value is 0
|
||||
downloaded = status.total_done
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue