Skip to content

Commit

Permalink
fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 29, 2015
1 parent 740f0a3 commit 9d52452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netius/servers/torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def block_size(self, index, begin):
if not is_last_block: return BLOCK_SIZE
piece_size = self.piece_size(index)
modulus = piece_size % BLOCK_SIZE
if modulus == 0: return self.piece_length
if modulus == 0: return BLOCK_SIZE
return modulus

def pop_block(self, bitfield, mark = True):
Expand Down

0 comments on commit 9d52452

Please sign in to comment.