Open i990049 opened 1 day ago
@i990049
Is it possible to subtract the number of seeds from P?
for 1 (1!!!!!!) file only torrent it already does that. (not torrent with sample or .txt or season pack).
peersTotal := max(ts.GetListPeers()-ts.GetListSeeds()
seeds := ts.GetNumSeeds()
seedsTotal := max(ts.GetListSeeds(), ts.GetNumComplete())
peers := ts.GetNumPeers() - ts.GetNumSeeds()
peersTotal := max(ts.GetListPeers()-ts.GetListSeeds(), ts.GetNumComplete()+ts.GetNumIncomplete())
then open https://www.libtorrent.org/reference-Torrent_Status.html#torrent_status
num_seeds - the number of peers that are seeding that this client is currently connected to. num_peers - the number of peers this torrent currently is connected to. list_seeds - the number of seeds in our peer list list_peers - the total number of peers (including seeds) num_complete - the total number of peers that have the whole file num_incomplete - the total number of peers that are still downloading
BUT since elementum can download 1 file from torrent that has many files, it considers peer that this file as seed, even if this peer has only this file and thus considered by tracker as peer.
example: season pack, or movie with sample. so if i have movie file, but i do not have sample file, then for tracker i am a peer, but for you (who downloads only movie file) - i am a seed.
other BT client use num_complete num_incomplete elementum use num_seeds num_peers
Goldfinger 2023 BluRay 1080p x265 10bit 2Audio DDP5.1 MNHD-FRDS/ 金手指.The.Goldfinger.2023.BluRay.1080p.x265.10bit.2Audio.DDP5.1.MNHD-FRDS.mkv
the torrent is one folder contain one mkv in qbittorrent, peers=unfinished users=95-48=47 in elementum, peers=unfinished and finished users=48+47=95 is it possible to let elemenum to display unfinished users/num_incomplete 47?
is it possible to let elemenum to display unfinished users 47?
It is possible of course. I showed you the code.
But what about multi file torrents? Read above my explanation about it. Your change will break that logic. You will need to create complex logic for different use cases. I'm not sure that anyone want to do this.
use num_complete num_incomplete will be the same as the other BT client, no matter how many files you download.
That's up to @elgatito to decide, he introduced that logic.
I mean I can make a change in code, you can make a change as well, but if elgatito will not agree - this change will not be accepted.
in other bt client p stand for peer, only include the unfinished users. elementum's letter P include both the fished seeds and the unfinished peers according to the tracker. Is it possible to subtract the number of seeds from P?