]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/filter.sh
Update ranges of graphs - to take into account substraction of tx time
[can-benchmark.git] / gw-tests / filter.sh
index 38652f412b2c7bd309c3085d3f911a79c3cf6f4b..61d6e9c258d5ee45616b688fba5f688968a81a19 100755 (executable)
@@ -9,19 +9,28 @@ prepare() {
 }
 
 main() {
+    if [ "$kvers" = 3.0.4-rt14-00008-gb2052fd -a "$load" = eth -a $traffic != oneatatime ]; then echo "Skipping eth test"; SKIPPED=1; return; fi
     for i in $ids; do
        latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -n id-$i
     done
 }
 
+ADDITIONAL_PLOTS=detail
+
 plot_cmds() {
+    if [[ "$1" = detail ]]; then
+       range=0:0.8
+       echo "set logscale y"
+    else
+       range=0.01:100
+       echo "set logscale xy"
+    fi
     cat <<EOF
-set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
-set logscale xy
+set title "2048 GW rules (one per id, mask 0x7FF), no modifications"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0.1:100] [1:$COUNT] \\
+plot [$range] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do