- adjust nse on the fly
authorBart Polot <bart@net.in.tum.de>
Sat, 22 Mar 2014 02:58:17 +0000 (02:58 +0000)
committerBart Polot <bart@net.in.tum.de>
Sat, 22 Mar 2014 02:58:17 +0000 (02:58 +0000)
src/mesh/profiler.conf
src/mesh/run_profiler.sh

index 5a2e01f461ec63dc7e59cf4e2b7d70750ff94d53..a56705f50b2d5e60134f76b3943b56a6004f1318 100644 (file)
@@ -9,3 +9,6 @@ MANIPULATE_DELAY_OUT = 10 ms
 
 [mesh]
 REFRESH_CONNECTION_TIME = 60 s
+
+[dht]
+FORCE_NSE = %NSE%
index 9099b0c240deda11358b72f448ad9e428fdfc474..bd9f239a467d0083ac6016a3fd5422de619d8177 100755 (executable)
@@ -17,8 +17,9 @@ fi
 
 LINKS=`echo "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/g" profiler.conf > .profiler.conf
+sed -e "s/%LINKS%/$LINKS/;s/%NSE%/$NSE/" profiler.conf > .profiler.conf
 
 ./gnunet-mesh-profiler $ROUNDTIME $PEERS $PINGS |& tee log | grep -v DEBUG