X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio_generate_plots;h=9b1e1ca59ecf7df69d38aa2769e9b84c25b5c1c5;hp=4ae1d0affe6cb52260bbe0706939112aeab70aa9;hb=8e55e8c8bcb1a0068609df61047b7a1c3bba10f9;hpb=1618495b30517fb10f6e47c052689dc57ff78df7 diff --git a/fio_generate_plots b/fio_generate_plots index 4ae1d0af..9b1e1ca5 100755 --- a/fio_generate_plots +++ b/fio_generate_plots @@ -20,11 +20,12 @@ for i in *bw.log; do if [ ! -r $i ]; then continue fi + PT=$(echo $i | sed s/_bw.log//g) if [ "$PLOT_LINE"x != "x" ]; then PLOT_LINE=$PLOT_LINE", " fi - PLOT_LINE=$PLOT_LINE"'$i' with lines" + PLOT_LINE=$PLOT_LINE"'$i' title '$PT' with lines" done if [ "$PLOT_LINE"x != "x" ]; then @@ -37,11 +38,12 @@ for i in *slat.log; do if [ ! -r $i ]; then continue fi + PT=$(echo $i | sed s/_slat.log//g) if [ "$PLOT_LINE"x != "x" ]; then PLOT_LINE=$PLOT_LINE", " fi - PLOT_LINE=$PLOT_LINE"'$i' with lines" + PLOT_LINE=$PLOT_LINE"'$i' title '$PT' with lines" done if [ "$PLOT_LINE"x != "x" ]; then @@ -54,11 +56,12 @@ for i in *clat.log; do if [ ! -r $i ]; then continue fi + PT=$(echo $i | sed s/_clat.log//g) if [ "$PLOT_LINE"x != "x" ]; then PLOT_LINE=$PLOT_LINE", " fi - PLOT_LINE=$PLOT_LINE"'$i' with lines" + PLOT_LINE=$PLOT_LINE"'$i' title '$PT' with lines" done if [ "$PLOT_LINE"x != "x" ]; then