From: Razvan Deaconescu Date: Wed, 18 Aug 2010 12:23:08 +0000 (+0300) Subject: ControlScripts/hrk: add connection limit argument to start_hrk_*_limit.sh script X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=108697c980018db9386b68207911d525de49ca36;p=p2p-testing-infrastructure.git ControlScripts/hrk: add connection limit argument to start_hrk_*_limit.sh script --- 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