3 if [ "$#" -lt "1" ]; then
4 echo "usage: $0 PEERS";
10 if [ $PEERS -eq 1 ]; then
11 echo "cannot run 1 peer";
15 LINKS=`echo "l($PEERS) * $PEERS" | bc -l`
16 LINKS=`printf "%.0f" $LINKS`
17 echo "using $PEERS peers, $LINKS links";
19 sed -e "s/%LINKS%/$LINKS/g" profiler.template > profiler.conf
21 ./gnunet-mesh-profiler $PEERS