mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
Fix #545 use proper values in ratio calculation
This commit is contained in:
parent
e4c72c7dce
commit
1fbf983ff6
2 changed files with 77 additions and 76 deletions
|
@ -1,6 +1,7 @@
|
||||||
Deluge 1.0.4 (In Development)
|
Deluge 1.0.4 (In Development)
|
||||||
Core:
|
Core:
|
||||||
* Fix #560 force an int value for global max connections
|
* Fix #560 force an int value for global max connections
|
||||||
|
* Fix #545 use proper values in ratio calculation
|
||||||
|
|
||||||
Deluge 1.0.3 (18 October 2008)
|
Deluge 1.0.3 (18 October 2008)
|
||||||
Core:
|
Core:
|
||||||
|
|
|
@ -314,8 +314,8 @@ class Torrent:
|
||||||
else:
|
else:
|
||||||
status = self.status
|
status = self.status
|
||||||
|
|
||||||
up = self.total_uploaded + status.total_payload_upload
|
up = status.all_time_upload
|
||||||
down = status.total_done
|
down = status.all_time_download
|
||||||
|
|
||||||
# Convert 'up' and 'down' to floats for proper calculation
|
# Convert 'up' and 'down' to floats for proper calculation
|
||||||
up = float(up)
|
up = float(up)
|
||||||
|
@ -417,7 +417,7 @@ class Torrent:
|
||||||
"paused": self.status.paused,
|
"paused": self.status.paused,
|
||||||
"progress": progress,
|
"progress": progress,
|
||||||
"next_announce": self.status.next_announce.seconds,
|
"next_announce": self.status.next_announce.seconds,
|
||||||
"total_payload_download": self.status.all_time_download,
|
"total_payload_download": self.status.total_payload_download,
|
||||||
"total_payload_upload": self.status.total_payload_upload,
|
"total_payload_upload": self.status.total_payload_upload,
|
||||||
"download_payload_rate": self.status.download_payload_rate,
|
"download_payload_rate": self.status.download_payload_rate,
|
||||||
"upload_payload_rate": self.status.upload_payload_rate,
|
"upload_payload_rate": self.status.upload_payload_rate,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue