mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Wrong ratio when torrent is started with some files already present #15542
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#15542
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SinTan1729 on GitHub (Mar 4, 2024).
qBittorrent & operating system versions
qBittorrent: 4.6.3 Web-UI x64
Operating system: AlmaLinux: Linux 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64 GNU/Linux
libtorrent-rasterbar: 2.0.10-r0
What is the problem?
If a torrent is started with some of its files already present on the system, qBittorrent successfully detects them and completes the rest of the download. However, once seeding starts, the ratio shows wrong ratio. (See additional context for an example.)
Steps to reproduce
Additional context
For example, if a 1 GB torrent already had 900 MB downloaded from before, adding the torrent to the client results in 100 MB being downloaded. While seeding, if say 100 MB is uploaded, the ratio is shown as 1.0 instead of 0.1. So, the ratio is shown as uploaded/downloaded instead of uploaded/size which will be the expected behavior.
Log(s) & preferences file(s)
No response
@stalkerok commented on GitHub (Mar 4, 2024):
github.com/qbittorrent/qBittorrent@f87ea1b5d3/src/base/bittorrent/torrentimpl.cpp (L1480-L1483)@SinTan1729 commented on GitHub (Mar 4, 2024):
Damn, looks like I was the exception.