]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/pc.sh
Fix line breaks in plot commands
[can-benchmark.git] / gw-tests / pc.sh
index fa511d8ddb6287d25498d2dacafde0e0df7c22ba..9d20d3beac13e1a66afb366730467b7976edf052 100755 (executable)
@@ -10,16 +10,19 @@ main() {
 }
 
 plot_cmds() {
+    max=0.5
+    if [ $traffic = "flood" ]; then max=35; fi
+
     cat <<EOF
-set title "No GW, two interfaces in PC"
+set title "No GW, two interfaces in PC (Latency = t_{kernel RX} - t_{before send} - t_{TX length})"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0:] [1:$COUNT] \
-          "len2-hist.txt" with lp lt 1 title "2 byte messages", \
-          "len4-hist.txt" with lp lt 2 title "4 byte messages", \
-          "len6-hist.txt" with lp lt 3 title "6 byte messages", \
+plot [0.01:$max] [1:$COUNT] \\
+          "len2-hist.txt" with lp lt 1 title "2 byte messages", \\
+          "len4-hist.txt" with lp lt 2 title "4 byte messages", \\
+          "len6-hist.txt" with lp lt 3 title "6 byte messages", \\
           "len8-hist.txt" with lp lt 4 title "8 byte messages"
 EOF
 }