sandbox1
inpos 2016-03-17 19:47:45 +03:00
parent 8c5cc17491
commit 5ae402715b
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ class TorrentFS(object):
file_.downloaded = self.getFileDownloadedBytes(i) file_.downloaded = self.getFileDownloadedBytes(i)
if file_.size > 0: if file_.size > 0:
file_.progress = float(file_.downloaded)/float(file_.size) file_.progress = float(file_.downloaded)/float(file_.size)
logging.info('adding file: %s' % (file_.name,))
files_.append(file_) files_.append(file_)
return files_ return files_
def __file_at_(self, index): def __file_at_(self, index):