From 32ca92e06dd948c5c6355b9be6bbc4209042944b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sat, 22 Mar 2014 02:58:17 +0000 Subject: [PATCH] - adjust nse on the fly --- src/mesh/profiler.conf | 3 +++ src/mesh/run_profiler.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesh/profiler.conf b/src/mesh/profiler.conf index 5a2e01f46..a56705f50 100644 --- a/src/mesh/profiler.conf +++ b/src/mesh/profiler.conf @@ -9,3 +9,6 @@ MANIPULATE_DELAY_OUT = 10 ms [mesh] REFRESH_CONNECTION_TIME = 60 s + +[dht] +FORCE_NSE = %NSE% diff --git a/src/mesh/run_profiler.sh b/src/mesh/run_profiler.sh index 9099b0c24..bd9f239a4 100755 --- a/src/mesh/run_profiler.sh +++ b/src/mesh/run_profiler.sh @@ -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 -- 2.25.1