3 if [ -z "$SERVERS" ]; then
9 for from in `grep -v '^#' ../$SERVERS`; do
10 for to in `grep -v '^#' ../$SERVERS`; do
11 CWNDLOG="$from-$to-cwnd.log"
12 if [ ! -e $CWNDLOG ]; then
15 GP="$from-$to.gnuplot"
16 echo "set term png large size 1024,768" > $GP
18 if [ -e $PNG ]; then rm $PNG; fi
19 echo "set out '$from-$to.png'" >> $GP
20 echo "set y2tics" >> $GP
21 echo "set y2label 'packets'" >> $GP
22 echo "set ylabel 'microseconds'" >> $GP
23 echo "set xlabel 'run time millis'" >> $GP
24 CWNDLOG="$from-$to-cwnd.log"
25 echo -ne "plot '$CWNDLOG' using 1:2 with lines title 'cwnd'"\
27 " '$CWNDLOG' using 1:3 with lines title 'data out'"\
30 RTTLOG="$from-$to-rtt.log"
31 if [ -e $RTTLOG ]; then
32 echo -ne ", '$RTTLOG' using 1:2 with lines title 'rtt' "\
34 "'$RTTLOG' using 1:3 with lines title 'dev' "\
38 OWDLOG="$from-$to-owd.log"
39 if [ -e $OWDLOG ]; then
40 echo -ne ", '$OWDLOG' using 1:2 with lines title 'owd' "\
42 "'$OWDLOG' using 1:3 with lines title 'min owd'"\
44 "'$OWDLOG' using 1:($2+25000) with lines title 'target'"\
49 ( cat $GP | gnuplot ) &