-
-
Notifications
You must be signed in to change notification settings - Fork 983
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
32-bit signed int is not enough for transfer rates #7693
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libtorrent version (or branch): 2.0.10
platform/architecture: Linux x86-64
compiler and compiler version: gcc 14.1.1
As the title says, I'm actually able to acheive transfers rates more than 2 GiB/s in qBittorrent and exceed the max int32 value.
This leads to weird results. See qbittorrent/qBittorrent#21003 for details.
The root of the problem is fairly straghtforward:
libtorrent/include/libtorrent/torrent_status.hpp
Lines 316 to 317 in ba3a13c
libtorrent/include/libtorrent/torrent_status.hpp
Lines 323 to 324 in ba3a13c
Maybe it's time to promote the values to
int64_t
.The text was updated successfully, but these errors were encountered: