- pass warmup parameter
authorBart Polot <bart@net.in.tum.de>
Sat, 22 Mar 2014 16:54:40 +0000 (16:54 +0000)
committerBart Polot <bart@net.in.tum.de>
Sat, 22 Mar 2014 16:54:40 +0000 (16:54 +0000)
src/mesh/run_profiler.sh

index bd9f239a467d0083ac6016a3fd5422de619d8177..7cdf7b7040c5c3fae1fe0d82cf8b4aad0557dba6 100755 (executable)
@@ -15,11 +15,11 @@ if [ $PEERS -eq 1 ]; then
     exit 1;
 fi
 
-LINKS=`echo "l($PEERS) * $PEERS" | bc -l`
+LINKS=`echo "l($PEERS) * l($PEERS) * $PEERS" | bc -l`
 LINKS=`printf "%.0f" $LINKS`
 NSE=`echo "l($PEERS)/l(10)" | bc -l`
 echo "using $PEERS peers, $LINKS links";
     
 sed -e "s/%LINKS%/$LINKS/;s/%NSE%/$NSE/" profiler.conf > .profiler.conf
 
-./gnunet-mesh-profiler $ROUNDTIME $PEERS $PINGS |& tee log | grep -v DEBUG
+./gnunet-mesh-profiler $ROUNDTIME $PEERS $PINGS $4 |& tee log | grep -v DEBUG