diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-22 16:54:40 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-22 16:54:40 +0000 |
commit | 785be7a0e5d9b5c2f5e56f021a44468908a967f1 (patch) | |
tree | 97183f57c24db16dc02109d6e00fd2293424276e /src | |
parent | cb2a6d020ce422383dffda49636c6e6856e57847 (diff) | |
download | gnunet-785be7a0e5d9b5c2f5e56f021a44468908a967f1.tar.gz gnunet-785be7a0e5d9b5c2f5e56f021a44468908a967f1.zip |
- pass warmup parameter
Diffstat (limited to 'src')
-rwxr-xr-x | src/mesh/run_profiler.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/run_profiler.sh b/src/mesh/run_profiler.sh index bd9f239a4..7cdf7b704 100755 --- a/src/mesh/run_profiler.sh +++ b/src/mesh/run_profiler.sh | |||
@@ -15,11 +15,11 @@ if [ $PEERS -eq 1 ]; then | |||
15 | exit 1; | 15 | exit 1; |
16 | fi | 16 | fi |
17 | 17 | ||
18 | LINKS=`echo "l($PEERS) * $PEERS" | bc -l` | 18 | LINKS=`echo "l($PEERS) * 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 | NSE=`echo "l($PEERS)/l(10)" | bc -l` |
21 | echo "using $PEERS peers, $LINKS links"; | 21 | echo "using $PEERS peers, $LINKS links"; |
22 | 22 | ||
23 | sed -e "s/%LINKS%/$LINKS/;s/%NSE%/$NSE/" profiler.conf > .profiler.conf | 23 | sed -e "s/%LINKS%/$LINKS/;s/%NSE%/$NSE/" profiler.conf > .profiler.conf |
24 | 24 | ||
25 | ./gnunet-mesh-profiler $ROUNDTIME $PEERS $PINGS |& tee log | grep -v DEBUG | 25 | ./gnunet-mesh-profiler $ROUNDTIME $PEERS $PINGS $4 |& tee log | grep -v DEBUG |