bench_plot.sh: Fix indentation in prepare_res
authorLucas Bajolet <r4pass@hotmail.com>
Thu, 29 Oct 2015 19:00:09 +0000 (15:00 -0400)
committerLucas Bajolet <r4pass@hotmail.com>
Thu, 29 Oct 2015 19:00:29 +0000 (15:00 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

benchmarks/bench_plot.sh

index 623ca6c..db0507d 100755 (executable)
@@ -94,20 +94,20 @@ set title "$1 ; avg. on $count-1 runs"
 set ylabel "time (s)"
 $plots
 END
-plots=
+       plots=
 
-if test -n "$html"; then
-       echo "# gnuplot $1"
-       bn=`basename "$1" .gnu`
-       gnuplot -e "set term png; set output \"$bn.png\"" "$1"
-       echo gnuplot -e "set term png; set output \"$bn.png\"" "$1"
+       if test -n "$html"; then
+               echo "# gnuplot $1"
+               bn=`basename "$1" .gnu`
+               gnuplot -e "set term png; set output \"$bn.png\"" "$1"
+               echo gnuplot -e "set term png; set output \"$bn.png\"" "$1"
 
-       echo >>"$html" "<img src=\"$bn.png\"/>"
-fi
-if test -n "$DISPLAY"; then
-       echo "# gnuplot -p $1"
-       gnuplot -p "$1"
-fi
+               echo >>"$html" "<img src=\"$bn.png\"/>"
+       fi
+       if test -n "$DISPLAY"; then
+               echo "# gnuplot -p $1"
+               gnuplot -p "$1"
+       fi
 }
 
 # Create a new $res to be used in the next plot