Log In
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings NUTSS
 
 
Summary Tracker Lists CVS Files
 

CVS | Administration

Diff for /libnutss/examples/swp_vl_test between versions 1.3 and 1.4

version 1.3, 2007/06/29 17:19:44 version 1.4, 2007/06/30 20:57:28
Line 3 Line 3
 trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM  trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM
   
 if [ "$#" == "0" ]; then  if [ "$#" == "0" ]; then
   echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peers time_limit max_flow_duration max_flow_weight"    echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peers time_limit max_flow_duration max_flow_weightmax_load"
     exit 0      exit 0
 fi  fi
   
Line 20  killall lt-nutssd Line 20  killall lt-nutssd
 ./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt &  ./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt &
   
 for i in $(seq $1); do  for i in $(seq $1); do
       ./slinksvariableload $i $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1`&        ./slinksvariableload $i $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1``expr $RANDOM % $6 + 1` &
 done  done
   
K = `expr $1 + 1`#export K = `expr $1 + 1`
   
while true; do#while true; do
sleep 20#        sleep 20
./slinksvariableload $K $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1`&#        ./slinksvariableload $K $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1``expr $RANDOM % $6 + 1` &
       K = `expr $K + 1`       export K = `expr $K + 1`
done#done

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
 

GForge.cis.cornell.edu is brought to you by

Cornell Computing and Information Science


Powered By GForge Collaborative Development Environment