From cb7f1af5a539dbf9c8c2656a31631acef9e4792c Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Mon, 8 Jun 2015 22:35:28 +0300 Subject: [PATCH] update --- Libtorrent.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libtorrent.py b/Libtorrent.py index 841881f..de67627 100644 --- a/Libtorrent.py +++ b/Libtorrent.py @@ -368,9 +368,8 @@ class Libtorrent: self.startPart = selectedFileInfo['offset'] / self.piece_length self.endPart = int((selectedFileInfo['offset'] + selectedFileInfo['size']) / self.piece_length) #print 'part ' + str(self.startPart)+ str(' ')+ str(self.endPart) - pieceMB=float(self.piece_length) / (1024 * 1024) - multiplier=int(10/pieceMB) - #print 'continueSession: pieceMB '+str(pieceMB)+' multiplier '+str(multiplier) + multiplier=self.partOffset/5 + print 'continueSession: multiplier '+str(multiplier) for i in range(self.startPart, self.startPart + self.partOffset): if i <= self.endPart: self.torrentHandle.piece_priority(i, 7)