From 1e378682ccef5ccfc3927cd9817a69a383c00213 Mon Sep 17 00:00:00 2001 From: P2P-Next User Date: Wed, 18 Aug 2010 16:57:41 +0000 Subject: [PATCH] ControlScripts/clients/hrk: fix command line argument verification in start_hrk_*limit.sh - take into account number-of-connections argument --- ControlScripts/clients/hrk/start_hrk_leecher_limit.sh | 4 ++-- ControlScripts/clients/hrk/start_hrk_seeder_limit.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.20.1