aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jibuf/jitter.plt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jibuf/jitter.plt')
-rw-r--r--tests/jibuf/jitter.plt32
1 files changed, 23 insertions, 9 deletions
diff --git a/tests/jibuf/jitter.plt b/tests/jibuf/jitter.plt
index 37deb65..0235170 100644
--- a/tests/jibuf/jitter.plt
+++ b/tests/jibuf/jitter.plt
@@ -23,13 +23,27 @@ set ytics nomirror
#set y2label 'delay [ms]'
#set y2tics nomirror
-plot \
- '/tmp/bla' using 3:5 with linespoints title 'pre.trans' axes x1y1, \
- '/tmp/bla' using 4:6 with linespoints title 'post.trans' axes x1y1, \
- '/tmp/bla' using 3:7 with linespoints title 'pre.jitter' axes x1y1, \
- '/tmp/bla' using 4:8 with linespoints title 'post.jitter' axes x1y1, \
- '/tmp/bla' using 3:9 with linespoints title 'pre.dropped' axes x1y1, \
- '/tmp/bla' using 3:10 with linespoints title 'pre.buffer' axes x1y1, \
- '/tmp/bla' using 3:((column(3)-column(2))) with linespoints title 'pre.delay' axes x1y1, \
- '/tmp/bla' using 4:((column(4)-column(2))) with linespoints title 'post.delay' axes x1y1
+# For pcap based input, 'pre.delay' makes no sense (it's 0) as we can't know tx_delay
+pcap = 1
+if (pcap) {
+ plot \
+ '/tmp/bla' using 3:5 with linespoints title 'pre.trans' axes x1y1, \
+ '/tmp/bla' using 4:6 with linespoints title 'post.trans' axes x1y1, \
+ '/tmp/bla' using 3:7 with linespoints title 'pre.jitter' axes x1y1, \
+ '/tmp/bla' using 4:8 with linespoints title 'post.jitter' axes x1y1, \
+ '/tmp/bla' using 3:9 with linespoints title 'pre.dropped' axes x1y1, \
+ '/tmp/bla' using 3:10 with linespoints title 'pre.buffer' axes x1y1, \
+ '/tmp/bla' using 4:((column(4)-column(2))) with linespoints title 'post.delay' axes x1y1
+
+} else {
+ plot \
+ '/tmp/bla' using 3:5 with linespoints title 'pre.trans' axes x1y1, \
+ '/tmp/bla' using 4:6 with linespoints title 'post.trans' axes x1y1, \
+ '/tmp/bla' using 3:7 with linespoints title 'pre.jitter' axes x1y1, \
+ '/tmp/bla' using 4:8 with linespoints title 'post.jitter' axes x1y1, \
+ '/tmp/bla' using 3:9 with linespoints title 'pre.dropped' axes x1y1, \
+ '/tmp/bla' using 3:10 with linespoints title 'pre.buffer' axes x1y1, \
+ '/tmp/bla' using 3:((column(3)-column(2))) with linespoints title 'pre.delay' axes x1y1, \
+ '/tmp/bla' using 4:((column(4)-column(2))) with linespoints title 'post.delay' axes x1y1
+}
pause mouse close; exit