Skip to content

Commit

Permalink
Merge pull request lg#16 from rcohen/master
Browse files Browse the repository at this point in the history
Fix for "TypeError: slice indices must be integers or None"
  • Loading branch information
lg committed Oct 11, 2012
2 parents e22faf4 + 5ccbd0e commit 3daa9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/BitTornado/BT1/Downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _backlog(self, just_unchoked):
2+int(4*self.measure.get_rate()/self.downloader.chunksize),
(2*just_unchoked)+self.downloader.queue_limit() )
if self.backlog > 50:
self.backlog = max(50, self.backlog * 0.075)
self.backlog = max(50, int(self.backlog * 0.075))
return self.backlog

def disconnected(self):
Expand Down

0 comments on commit 3daa9b3

Please sign in to comment.