From: P2P-Next User Date: Wed, 18 Aug 2010 16:57:41 +0000 (+0000) Subject: ControlScripts/clients/hrk: fix command line argument verification in start_hrk_... X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=1e378682ccef5ccfc3927cd9817a69a383c00213;p=p2p-testing-infrastructure.git ControlScripts/clients/hrk: fix command line argument verification in start_hrk_*limit.sh - take into account number-of-connections argument --- diff --git a/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh b/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh index b60bfa8..50f1e22 100755 --- a/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh +++ b/ControlScripts/clients/hrk/start_hrk_leecher_limit.sh @@ -12,8 +12,8 @@ # If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder # -if test $# -ne 2; then - echo "Usage: $0 download-limit(kb/s) upload-limit(kb/s)" 1>&2 +if test $# -ne 3; then + echo "Usage: $0 download-limit(kb/s) upload-limit(kb/s) number-of-connections" 1>&2 exit 1 fi diff --git a/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh b/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh index 037b583..99022f9 100755 --- a/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh +++ b/ControlScripts/clients/hrk/start_hrk_seeder_limit.sh @@ -12,8 +12,8 @@ # If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder # -if test $# -ne 2; then - echo "Usage: $0 download-limit(kb/s) upload-limit(kb/s)" 1>&2 +if test $# -ne 3; then + echo "Usage: $0 download-limit(kb/s) upload-limit(kb/s) number-of-connections" 1>&2 exit 1 fi