Module: deluge Branch: pieces-progress-bar Commit: b78ae83ee02921fa1b52c1b5d0402efb651aa485
Author: Pedro Algarvio <[email protected]> Date: Sat May 7 20:08:14 2011 +0100 Pieces bar "calculation" bug fix. --- deluge/core/torrent.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 3c500ae..4935723 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -964,8 +964,8 @@ class Torrent(object): # Completed Piece pieces[idx] = 3 continue - elif availability[idx] > 1: - # Piece not downloaded nor beeing downloaded + elif availability[idx] > 0: + # Piece not downloaded nor beeing downloaded but available pieces[idx] = 1 continue # If we reached here, it means the piece is missing, ie, there's -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
