1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00
transmission/docs/Can-I-sequence-the-files-I-download.md
Charles Kerr f8477d5af1
docs: misc fixes (#2683)
* docs: update Scripts documentation

Fixes #1159

* docs: fix broken Blocklist links

Fixes #913.

* docs: remove trailing spaces in markdown

* docs: remove link to nonexistent FAQ

Fixes #1937.

* docs: unbreak the building-trqt-on-win link

Fixes #1226.

TODO: import that file to these docs

* docs: add call for PRs
2022-02-22 12:45:30 -06:00

838 B

Can I sequence the files I download? This is quite a common question. This entry will try to answer it and offer solutions.

Why is this "feature" not implemented in Transmission?

Because it makes the overall swarm's health worse.

But I want to sequence the files I download, how do I do it?

There're two methods basically, one DIY that requires a bit of code changing and the "user friendly" version.

  1. DIY code changing approach: Tweak compareRefillPiece() in libtransmission/peer-mgr.c

    Replace:

    /* otherwise go with our random seed */
    return tr_compareUint16( a->random, b->random );
    

    With:

    /* otherwise download the pieces in order */
    return tr_compareUint16( a->piece, b->piece );
    
  2. "User-friendly" approach: In the file inspector, change the priorities "by hand".