Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torrent_status::total_wanted doesn't change when adding with 0 file priority #62

Closed
sledgehammer999 opened this issue Aug 2, 2015 · 2 comments

Comments

@sledgehammer999
Copy link
Contributor

Sorry for the long title.

Let's say you have a multifile torrent that you want to add to the session. Let's say that you initialize the file_priorities of add_torrent_params and set some files to 0 priority. Then after you add it to the session torrent_status::total_wanted returns the total size of the torrent instead of the non-zero priority files.

If you afterwards change the priorities total_wanted gets updated.

Tested with 1.0.6

PS: I tested with session::async_add_torrent()

@arvidn
Copy link
Owner

arvidn commented Aug 2, 2015

Thanks for the report! fixed in 896b89e

@arvidn arvidn closed this as completed Aug 2, 2015
@sledgehammer999
Copy link
Contributor Author

Fix confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants