Pieces bar "calculation" bug fix.
This commit is contained in:
parent
99f2dbd178
commit
856a6cd1ab
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user