]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - test.py
Use the mirror as a peer when there are few peers for a file.
[quix0rs-apt-p2p.git] / test.py
diff --git a/test.py b/test.py
index acbeeae50c808ae7d47144aae2276e4ffe447752..3ccaa14b3947a22d915757c09a7202966f861a16 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -343,6 +343,12 @@ PORT = %(PORT)s
 # Set this to 0 to not limit the upload bandwidth.
 UPLOAD_LIMIT = 100
 
+# The minimum number of peers before the mirror is not used.
+# If there are fewer peers than this for a file, the mirror will also be
+# used to speed up the download. Set to 0 to never use the mirror if
+# there are peers.
+MIN_DOWNLOAD_PEERS = 3
+
 # Directory to store the downloaded files in
 CACHE_DIR = %(CACHE_DIR)s