From: Razvan Deaconescu Date: Tue, 3 Aug 2010 15:53:57 +0000 (+0300) Subject: update indentation (use TAB) X-Git-Tag: classic-scenario-config X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=3f41c7a6848505392a65351e45d92a7b669855cc;p=p2p-testing-infrastructure.git update indentation (use TAB) --- diff --git a/ConfigFiles/client_script_mappings b/ConfigFiles/client_script_mappings index 337fed4..d331fff 100644 --- a/ConfigFiles/client_script_mappings +++ b/ConfigFiles/client_script_mappings @@ -8,18 +8,18 @@ start_client() { local client_type=$1 - local torrent_file=$2 + local torrent_file=$2 DEBUG echo "starting client ..." case "${client_type}" in - "hrktorrent_seeder") - ./start_hrk_seeder.sh ${torrent_file} & - return $! - ;; - "hrktorrent_leecher") - ./start_hrk_leecher.sh ${torrent_file} & - return $! - ;; + "hrktorrent_seeder") + ./start_hrk_seeder.sh ${torrent_file} & + return $! + ;; + "hrktorrent_leecher") + ./start_hrk_leecher.sh ${torrent_file} & + return $! + ;; esac } @@ -29,11 +29,11 @@ stop_client() DEBUG echo "stopping client ..." case "${client_type}" in - "hrktorrent_seeder") - ./stop_hrk.sh - ;; - "hrktorrent_leecher") - ./stop_hrk.sh - ;; + "hrktorrent_seeder") + ./stop_hrk.sh + ;; + "hrktorrent_leecher") + ./stop_hrk.sh + ;; esac } diff --git a/ControlScripts/schedule_client.sh b/ControlScripts/schedule_client.sh index 3bf5e5c..795e40e 100755 --- a/ControlScripts/schedule_client.sh +++ b/ControlScripts/schedule_client.sh @@ -53,14 +53,14 @@ parse_periods() suspend_client() { - local client_pid=$1 + local client_pid=$1 DEBUG echo "suspending client ..." kill -STOP ${client_pid} } resume_client() { - local client_pid=$1 + local client_pid=$1 DEBUG echo "resuming client ..." kill -CONT ${client_pid} } @@ -81,8 +81,8 @@ old_time=${start_time} for ((i = 0; i < ${#suspend_resume[@]}; i += 2)); do to_sleep=$((${suspend_resume[$i]} - ${old_time})) sleep ${to_sleep} - client_pid=$(pgrep -P ${background_pid}) - DEBUG echo "client_pid is ${client_pid}" + client_pid=$(pgrep -P ${background_pid}) + DEBUG echo "client_pid is ${client_pid}" suspend_client ${client_pid} old_time=${suspend_resume[$i]}