From 8e7d4f2cd47532ae445ffea3551a00e48d16f807 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 23 Dec 2009 18:44:00 +0000 Subject: [PATCH] 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. --- deluge/core/torrent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 3f03763ad..7cddf616c 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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: