Module: deluge
Branch: master
Commit: 856a6cd1ab6d132a4381121cc988b431df6942f4

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 024458a..badb26b 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

-- 
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.

Reply via email to