aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-22 02:58:17 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-22 02:58:17 +0000
commit32ca92e06dd948c5c6355b9be6bbc4209042944b (patch)
treec1b0ca162d81e848af9d07dd05e16d0c0a7eb581 /src
parentf75bfa61c230dec4a2f125b49b9b943f87cc90a5 (diff)
downloadgnunet-32ca92e06dd948c5c6355b9be6bbc4209042944b.tar.gz
gnunet-32ca92e06dd948c5c6355b9be6bbc4209042944b.zip
- adjust nse on the fly
Diffstat (limited to 'src')
-rw-r--r--src/mesh/profiler.conf3
-rwxr-xr-xsrc/mesh/run_profiler.sh3
2 files changed, 5 insertions, 1 deletions
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
9 9
10[mesh] 10[mesh]
11REFRESH_CONNECTION_TIME = 60 s 11REFRESH_CONNECTION_TIME = 60 s
12
13[dht]
14FORCE_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
17 17
18LINKS=`echo "l($PEERS) * $PEERS" | bc -l` 18LINKS=`echo "l($PEERS) * $PEERS" | bc -l`
19LINKS=`printf "%.0f" $LINKS` 19LINKS=`printf "%.0f" $LINKS`
20NSE=`echo "l($PEERS)/l(10)" | bc -l`
20echo "using $PEERS peers, $LINKS links"; 21echo "using $PEERS peers, $LINKS links";
21 22
22sed -e "s/%LINKS%/$LINKS/g" profiler.conf > .profiler.conf 23sed -e "s/%LINKS%/$LINKS/;s/%NSE%/$NSE/" profiler.conf > .profiler.conf
23 24
24./gnunet-mesh-profiler $ROUNDTIME $PEERS $PINGS |& tee log | grep -v DEBUG 25./gnunet-mesh-profiler $ROUNDTIME $PEERS $PINGS |& tee log | grep -v DEBUG