r98 - /debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Tue Jun 12 21:57:07 UTC 2007


Author: camrdale-guest
Date: Tue Jun 12 21:57:07 2007
New Revision: 98

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=98
Log:
Make the initial state all pieces uninteresting.

Modified:
    debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py

Modified: debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py?rev=98&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py Tue Jun 12 21:57:07 2007
@@ -46,7 +46,8 @@
         self.pos_in_interests = [0] * self.numpieces
         for i in xrange(self.numpieces):
             self.pos_in_interests[interests[i]] = i
-        self.interests.append(interests)
+        # Init all interest levels to empty
+        self.interests.append([])
 
 
     def got_have(self, piece):




More information about the Debtorrent-commits mailing list