Use the mirror as a peer when there are few peers for a file.
[quix0rs-apt-p2p.git] / apt_p2p / apt_p2p_conf.py
index fe56d7c9c456f7460ae517c38c116e7ff154021c..69f6a9c088bbe6641fbeaf9ebda4dabd6cf96750 100644 (file)
@@ -44,6 +44,12 @@ DEFAULTS = {
     # Set this to 0 to not limit the upload bandwidth.
     'UPLOAD_LIMIT': '0',
 
+    # 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': home + '/.apt-p2p/cache',