idlesign / torrentool

The tool to work with torrent files.
https://github.com/idlesign/torrentool
BSD 3-Clause "New" or "Revised" License
148 stars 30 forks source link

condition never meets #19

Open IamDiwash opened 2 years ago

IamDiwash commented 2 years ago

Maybe the intended code on line 356 on torrent.py is:
if (size_data>size_max) because the condition: if (size_piece>size_max) seems impossible to meet from code above it

idlesign commented 2 years ago

Thank you for the report.

Yes, seems we need an edit and test suite improvement %)