From 108697c980018db9386b68207911d525de49ca36 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Wed, 18 Aug 2010 15:23:08 +0300 Subject: [PATCH] ControlScripts/hrk: add connection limit argument to start_hrk_*_limit.sh script --- ControlScripts/clients/hrk/start_hrk_leecher_limit.sh | 3 ++- ControlScripts/clients/hrk/start_hrk_seeder_limit.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh b/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh index c5673fc..b60bfa8 100755 --- a/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh +++ b/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh @@ -37,7 +37,8 @@ cd $WORKING_FOLDER_REL_PATH/Regular/ KB_DOWN_LIMIT=$1 KB_UP_LIMIT=$2 +CONN_LIMIT=$3 -LD_LIBRARY_PATH=$HRK_ABS_PATH/../libtorrent-rasterbar/lib $HRK_ABS_PATH/hrktorrent --limitlocal --maxdown ${KB_DOWN_LIMIT} --maxup ${KB_UP_LIMIT} ../TorrentsAndData/$TORRENT_FILE +LD_LIBRARY_PATH=$HRK_ABS_PATH/../libtorrent-rasterbar/lib $HRK_ABS_PATH/hrktorrent --limitlocal --maxdown ${KB_DOWN_LIMIT} --maxup ${KB_UP_LIMIT} --maxconnections ${CONN_LIMIT} ../TorrentsAndData/$TORRENT_FILE rm -rf * diff --git a/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh b/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh index 35a7656..037b583 100755 --- a/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh +++ b/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh @@ -37,5 +37,6 @@ cd $WORKING_FOLDER_REL_PATH/TorrentsAndData/ KB_DOWN_LIMIT=$1 KB_UP_LIMIT=$2 +CONN_LIMIT=$3 -LD_LIBRARY_PATH=$HRK_ABS_PATH/../libtorrent-rasterbar/lib $HRK_ABS_PATH/hrktorrent --limitlocal --maxdown ${KB_DOWN_LIMIT} --maxup ${KB_UP_LIMIT} $TORRENT_FILE +LD_LIBRARY_PATH=$HRK_ABS_PATH/../libtorrent-rasterbar/lib $HRK_ABS_PATH/hrktorrent --limitlocal --maxdown ${KB_DOWN_LIMIT} --maxup ${KB_UP_LIMIT} --maxconnections ${CONN_LIMIT} $TORRENT_FILE -- 2.20.1