[2.2.9] size discrepancy

Bug #598352 reported by Francois Thunus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qBittorrent
Confirmed
Low
Christophe Dumez

Bug Description

The size reported in the main window does not match the size in the fileview window

Revision history for this message
Francois Thunus (thunus) wrote :
Revision history for this message
Francois Thunus (thunus) wrote :
Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

Francois , next time please check what the bug is actually about .

I reported a font bug in the GUI , and your problem is about actual size of the torrent .

Please check if someone already reported your problem or open a new Bug Report.

Best Regards ,

SDERAWI

Changed in qbittorrent:
status: New → Fix Committed
status: Fix Committed → New
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Thanks Francois. I did notice this too from time to time. I thought this was due to rounding issues but more than 3MB off seems wrong... I will look into it.

@ SDERAWI > ?? This bug report has nothing to do with your report nor with font. Francois Thunus is very familiar with bug reporting and he is a long time qBittorrent user :)

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

SWERAWI > This is actually a NEW bug report, he did not use your bug report (although, I see that the report title is quite similar though :P)

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Francois > I have tried to reproduce (unsuccessfully) without ~20 torrents. Maybe you could send me the problematic torrent (chris<at>qbittorrent.org)?

One possible explanation is that some torrent contain padding files that are not displayed nor considered by qBittorrent. However, libtorrent probably report the whole size (actual files + padding files). If so, I could certainly tweak my code to fix this but I need a torrent for testing.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok. I managed to reproduce by filtering files in a torrent. I believe this is due to the following:
- A torrent file is separated into regular size pieces
- These pieces can actually contain parts of several files
- A Bittorrent client does not actually consider files, but these pieces

Libtorrent is not able to download part of a piece, only full pieces. As a consequence, it is possible that qBittorrent will have to download 196MB (the size of all the pieces) although you are only interested in 192.7MB (the actual size of the files you are interested in).

I do agree that this can be confusing for users so I 'll try to find a better way.

For your information, the full pieces download is also the reason why some unwanted files appear on the filesystem although you chose not to download them. This means that those files were next to wanted file in the torrent and pieces at files extremities can contain parts of more than one file.

Revision history for this message
SDERAWI (sderawi-deactivatedaccount) wrote :

Oh , then sorry Francois I really thought this was my report. Once again I'm sorry about this.

Best Regards ,

SDERAWI

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.