mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-06 10:05:35 +00:00
Pieces bar "calculation" bug fix.
This commit is contained in:
parent
99f2dbd178
commit
856a6cd1ab
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue