Skip to content

Commit

Permalink
add --min-split-size=1M parameter for aria2c to enhance parallel
Browse files Browse the repository at this point in the history
the default value is 20M, too large for normal deb packages
  • Loading branch information
PeterDaveHello committed Aug 12, 2014
1 parent cff0d7c commit 0224aa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apt-fast
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ endColor='\e[0m'
APT_FAST_TIMEOUT=60

# Download command.
_DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'
_DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} -i ${DLLIST} --min-split-size=1M --connect-timeout=600 --timeout=600 -m0'

# Load config file.
CONFFILE="/etc/apt-fast.conf"
Expand Down
6 changes: 3 additions & 3 deletions apt-fast.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@
#
# Examples:
# aria2c with a proxy (set username, proxy, ip and password!)
# _DOWNLOADER='aria2c -c 20 -j ${_MAXNUM} -x ${_MAXNUM} --http-proxy=http://username:password@proxy_ip:proxy_port -i ${DLLIST}'
# _DOWNLOADER='aria2c -c 20 -j ${_MAXNUM} -x ${_MAXNUM} --min-split-size=1M --http-proxy=http://username:password@proxy_ip:proxy_port -i ${DLLIST}'
#
# Default: _DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'
# Default: _DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} --min-split-size=1M -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'
#
#_DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'
#_DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} --min-split-size=1M -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'


# Download temp folder for Downloadmanager
Expand Down

0 comments on commit 0224aa2

Please sign in to comment.