swift integration update
authorP2P-Next User <p2p@p2p-next-04-201.grid.pub.ro>
Fri, 26 Nov 2010 07:55:29 +0000 (09:55 +0200)
committerP2P-Next User <p2p@p2p-next-04-201.grid.pub.ro>
Fri, 26 Nov 2010 07:55:29 +0000 (09:55 +0200)
ControlScripts/hook_monitor_pid.sh
ControlScripts/run_scenario.sh
Utils/get_time_dl_speed_avg_for_swarm

index b336789..7bff3c6 100755 (executable)
@@ -18,7 +18,6 @@ pid=$1
 kill -0 $pid > /dev/null 2>&1
 if test $? -ne 0; then
        echo -e "PID $pid does not exists.\nUsage: $0 <pid>" 1>&2
-       ps -ef
        exit 1
 fi
 
index b4b095e..24f9355 100755 (executable)
@@ -270,6 +270,16 @@ scenario_parse() {
                        exit 1
                fi
        fi
+       if ls -lR $SCENARIO_RESULTS_FOLDER | grep "\.mon" &> /dev/null; then
+               # There are .mon log files
+               echo " *** Parsing peer resource monitoring files"
+               rm -rf ${SCENARIO_RESULTS_FOLDER}/mon
+               mkdir ${SCENARIO_RESULTS_FOLDER}/mon
+               if ! ./parse_mon_log.sh $SCENARIO_RESULTS_FOLDER; then
+                       echo "Error parsing mon files in $SCENARIO_RESULTS_FOLDER"
+                       exit 1
+               fi
+       fi
        echo "---------------------- _scenario_parse" >> $ERR_LOG
 }
 
index 20f6beb..8bee893 100755 (executable)
@@ -13,7 +13,7 @@ fi
 rm -f temp1987
 touch temp1987
 
-for i in $(find $path -mindepth 1 -mindepth 1 -name '*.log.data'); do
+for i in $(find $path -mindepth 1 -maxdepth 1 -name '*.log.data'); do
        (./get_time_dl_speed_avg < "$i") >> temp1987
 done