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.6 and 1.7

version 1.6, 2007/07/03 16:45:11 version 1.7, 2007/07/11 04:31:47
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_limitmax_flow_duration max_flow_weight max_load"    echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peers time_limitpercent_to_send max_flow_duration max_flow_weight max_load"
     exit 0      exit 0
 fi  fi
   
Line 20  echo nodes: $1 > output/param0.txt Line 20  echo nodes: $1 > output/param0.txt
 echo peers: $2 > output/param1.txt  echo peers: $2 > output/param1.txt
 echo time limit: $3 > output/param2.txt  echo time limit: $3 > output/param2.txt
 echo max flow duration: $4 > output/param3.txt  echo max flow duration: $4 > output/param3.txt
echo max flowweight: $5 > output/param4.txtecho max flowduration: $5 > output/param4.txt
echo maxload: $6 > output/param5.txtecho maxflow weight: $6 > output/param5.txt
 echo max load: $7 > output/param6.txt
   
 cat output/param* > output/args.txt  cat output/param* > output/args.txt
 rm output/param*  rm output/param*
Line 30  killall lt-nutssd Line 31  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 / 4 \) + $4 - \( $4 / 8 \)` `expr $RANDOM % \( $5 / 4 \) + $5 - \( $5 / 8 \)` `expr $RANDOM % \( $6 / 4 \) + $6 - \( $6 / 8 \)`&        ./slinksvariableload $i $2 $3$4 `expr $RANDOM % \( $5 / 4 \) + $5 - \( $5 / 8 \)` `expr $RANDOM % \( $6 / 4 \) + $6 - \( $6 / 8 \)``expr $RANDOM % \( $7 / 4 \) + $7 - \( $7 / 8 \)` &
 done  done
   
 #export K = `expr $1 + 1`  #export K = `expr $1 + 1`

Removed from v.1.6  
changed lines
  Added in v.1.7


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