From 08527eeb7e9801b04f669d217b84344e1a6ebce2 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sat, 3 Sep 2016 14:38:47 +0300 Subject: [PATCH] Created Can I sequence the files I download (markdown) --- Can-I-sequence-the-files-I-download.md | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Can-I-sequence-the-files-I-download.md diff --git a/Can-I-sequence-the-files-I-download.md b/Can-I-sequence-the-files-I-download.md new file mode 100644 index 0000000..e107e44 --- /dev/null +++ b/Can-I-sequence-the-files-I-download.md @@ -0,0 +1,27 @@ +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: + + ```c + /* otherwise go with our random seed */ + return tr_compareUint16( a->random, b->random ); + ``` + + With: + + ```c + /* 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". \ No newline at end of file