diff options
-rw-r--r-- | src/mesh/profiler.conf | 3 | ||||
-rwxr-xr-x | src/mesh/run_profiler.sh | 3 |
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] |
11 | REFRESH_CONNECTION_TIME = 60 s | 11 | REFRESH_CONNECTION_TIME = 60 s |
12 | |||
13 | [dht] | ||
14 | 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 | |||
17 | 17 | ||
18 | LINKS=`echo "l($PEERS) * $PEERS" | bc -l` | 18 | LINKS=`echo "l($PEERS) * $PEERS" | bc -l` |
19 | LINKS=`printf "%.0f" $LINKS` | 19 | LINKS=`printf "%.0f" $LINKS` |
20 | NSE=`echo "l($PEERS)/l(10)" | bc -l` | ||
20 | echo "using $PEERS peers, $LINKS links"; | 21 | echo "using $PEERS peers, $LINKS links"; |
21 | 22 | ||
22 | sed -e "s/%LINKS%/$LINKS/g" profiler.conf > .profiler.conf | 23 | sed -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 |