Torrent availability count is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qBittorrent |
Fix Released
|
Low
|
Christophe Dumez |
Bug Description
When there is a missing peace, availability should be less then 1. My English is pure to explain it, so I'll give an example:
ex1.
there are 3 peers all of them have 70% of a torrent, all of them have the same peaces. availability should be 0.7 and you have 2.1.
ex2.
there are 3 peers all of them have 70% of a torrent, all of them have different peaces then the availability should be counted like this
peer | peaces spread
1 | 70% - 30%
2 | 15%- 70% 15%
3 | 30% - 70%
you take all 70% from the first one and last 30% of peaces from the 3rd peer = 1
now there's left middle 70% from the 2nd peer and middle 40% from the third one = 0.7
So the availability is 1.7 and not 2.1
I hope my pure English was enough to explain the bug I encountered.
description: | updated |
summary: |
- Availability is counting wrang. + Torrent availability count is wrong |
Changed in qbittorrent: | |
status: | Fix Committed → Fix Released |
I display the availability computed by libtorrent as far as I know. It may compute the availability differently from you.
Do you know how uTorrent computes its availability? It is very likely that libtorrent follows uTorrent's "standard".