Module: deluge Branch: chunked-sessionproxy-and-gtkui-speedups Commit: 427fe23bdccdc574da6d691afa3d26a4b7a9c1ca
Author: Pedro Algarvio <[email protected]> Date: Wed May 4 23:30:18 2011 +0100 Minor comment cleanup. --- deluge/core/torrent.py | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index aa727c1..024458a 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -997,16 +997,11 @@ class Torrent(object): pieces = {} # First get the pieces availability. availability = self.handle.piece_availability() - # Now, the pieces being downloaded -# for piece in self.handle.get_download_queue(): -# # In case the torrent is paused, the pieces in the download queue -# # will be shown as waiting -## pieces[piece['piece_index']] = self.handle.is_paused() and 1 or 2 -# pieces[piece['piece_index']] = 1 - # Pieces from connected peers for peer_info in self.handle.get_peer_info(): if peer_info.downloading_piece_index < 0: + # No piece index, then we're not downloading anything from + # this peer continue pieces[peer_info.downloading_piece_index] = 2 -- 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.
