From 856a6cd1ab6d132a4381121cc988b431df6942f4 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 7 May 2011 20:08:14 +0100 Subject: [PATCH] Pieces bar "calculation" bug fix. --- deluge/core/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 024458a4c..badb26b6b 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -1014,8 +1014,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