From e01f6fc9d5be13aabf9277c0735fc71bbcd789d5 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 27 Mar 2017 18:18:19 +0200 Subject: [PATCH] 10s seems more reasinable scale for CTS plots --- web/include/CtsCommands.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/include/CtsCommands.pm b/web/include/CtsCommands.pm index 83ee329..5ab5121 100644 --- a/web/include/CtsCommands.pm +++ b/web/include/CtsCommands.pm @@ -479,14 +479,14 @@ EOF # generate plot if ($gnuplot_fh) { shift @$plotData if $#{ $plotData } > 180; - push @$plotData, [ + push @$plotData, [' $time, $rates->{'cts_cnt_trg_asserted.value'}{'rate'}, $rates->{'cts_cnt_trg_edges.value'}{'rate'}, $rates->{'cts_cnt_trg_accepted.value'}{'rate'} ] if $rates->{'cts_cnt_trg_asserted.value'}; - if ($#{ $plotData } > 4) { + if ($#{ $plotData } > 5) { open FH, ">$config->{'dump_dir'}/plot.data"; foreach (@{$plotData}) { my @row = (@{ $_ }); @@ -505,7 +505,7 @@ plot \\ "$config->{'dump_dir'}/plot.data" using 1:3 with lp title "Edges", \\ "$config->{'dump_dir'}/plot.data" using 1:4 with lp title "Accepted" -set xrange [-5:0] +set xrange [-10:0] set output "$config->{'dump_dir'}/_tmp_plotshort.png" plot \\ "$config->{'dump_dir'}/plot.data" using 1:3 with lp title "Edges", \\ -- 2.43.0