X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=linux-tests%2Fplot_data.sh;h=dcc1de3c951f8ee68fec238bfae663eb0e9854bf;hp=cd5a1cd6f8992af4b5865b3cb50e22ba7a46b4d5;hb=e3344eda11a9656644f9c7fe345f1283cdd46b20;hpb=390dac6aa9334603dc13325bfb0511e778e8b926 diff --git a/linux-tests/plot_data.sh b/linux-tests/plot_data.sh index cd5a1cd..dcc1de3 100755 --- a/linux-tests/plot_data.sh +++ b/linux-tests/plot_data.sh @@ -28,7 +28,7 @@ while [ ! -e $done_file ] ; do str=$(cat /proc/yaffs_stats) echo "$i, $str" echo "$i, $str" >> $log_file -let i=$i+1 +i=$(($i+1)) sleep $gather_delay done } @@ -44,7 +44,10 @@ tail -$plot_samples $log_file > $trunc_file plot_str=" plot '$trunc_file' using 1:3 with linespoints title 'free', '' using 1:4 with linespoints title 'erased'" -echo "set title 'yaffs free space and erased space'" +echo "set title 'yaffs free space vs erased space'" +echo "set xlabel 'seconds'" +echo "set ylabel 'chunks'" + echo $plot_str