qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.47k stars 3.99k forks source link

Ratio limit value not displayed correctly #21884

Open nokti opened 20 hours ago

nokti commented 20 hours ago

qBittorrent & operating system versions

qBit 5.0.2 Win 10 Pro x64 22H2 19045.5131 Qt: 6.7.3 Libtorrent: 2.0.11.0

What is the problem?

When selecting a ratio limit, the value displayed is almost always lower by 0.01.

I haven't figured out why on some torrents the value displayed will be correct but on others not. These facts don't seem to influence the outcome: whether the torrent is active or not ; whether it's already been seeded or not.

Steps to reproduce

  1. Select a ratio limit for a torrent (eg: 5,00)
  2. Ratio limit displayed is 4,99

Additional context

Doing these extra steps can help get the correct value:

  1. Change it to 5,05
  2. Ratio limit displayed is 5,05
  3. Change it to 5,00 again
  4. Ratio limit displayed is 5,00

Log(s) & preferences file(s)

qBittorrent.txt