Pieces bar "calculation" bug fix.

This commit is contained in:
Pedro Algarvio 2011-05-07 20:08:14 +01:00
parent 99f2dbd178
commit 856a6cd1ab
1 changed files with 2 additions and 2 deletions

View File

@ -1014,8 +1014,8 @@ class Torrent(object):
# Completed Piece # Completed Piece
pieces[idx] = 3 pieces[idx] = 3
continue continue
elif availability[idx] > 1: elif availability[idx] > 0:
# Piece not downloaded nor beeing downloaded # Piece not downloaded nor beeing downloaded but available
pieces[idx] = 1 pieces[idx] = 1
continue continue
# If we reached here, it means the piece is missing, ie, there's # If we reached here, it means the piece is missing, ie, there's