]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/user-time.sh
Fix line breaks in plot commands
[can-benchmark.git] / gw-tests / user-time.sh
index cb73de266c8aadd0c24ec659193007091c0d0782..a4a518eb37c4fce9bdbd6f0360842514c42b74d9 100755 (executable)
@@ -12,9 +12,9 @@ main() {
 
 plot_cmds() {
     if [[ "$1" = detail ]]; then
-       range=0.06:0.3
+       range=0.0:0.3
     else
-       range=0.06:800
+       range=0.01:800
        echo "set logscale y"
     fi
     if [ -s user2-msgs.txt ]; then
@@ -25,12 +25,12 @@ plot_cmds() {
     cat <<EOF
 set title "Single GW rule for all messages, no modifications"
 set grid xtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [s]"
+set xlabel "Experiment time [s]"
 set ylabel "Latency [ms]"
-plot [:] [$range] \
-          "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \
-          "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \
-          "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \
+plot [:] [$range] \\
+          "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \\
+          "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \\
+          "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \\
           "kern8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 8 byte messages"
 EOF
 }