Pieces plugin fixes from eternalswd, thanks.

This commit is contained in:
Alex Dedul 2007-08-06 05:59:44 +00:00
parent ec1c5cf2c7
commit e33f9dc844
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class PiecesTabManager(object):
def build_pieces_table(self, table):
temp_prev_priority = 1
if self.current_first_index == 0\
if self.file_index == 0\
or self.current_first_index !=\
self.all_files[self.prev_file_index]['last_index']:
#if first piece is not a shared piece
@ -216,7 +216,7 @@ class PiecesTabManager(object):
self.peer_speed[main_index] = "unknown"
def skip_current_file(self):
if self.current_first_index == 0\
if self.file_index == 0\
or self.current_first_index !=\
self.all_files[self.prev_file_index]['last_index']:
#if first piece is not shared