summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2012-12-17 08:14:16 +0100
committerStefan Sauer <ensonic@users.sf.net>2012-12-17 08:14:16 +0100
commit9a17c79397be2a7795a97c28532c652c029210d5 (patch)
tree1ee14508890876ebd2baa86c2a4c1888551ef85d
parentdc9ffeeec38df1132054dc4e18cb5c6043b7ed72 (diff)
plot: start plotting on the first timestamp
-rwxr-xr-xsrc/gsttl_plot.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gsttl_plot.sh b/src/gsttl_plot.sh
index d5ca5c4..6589c28 100755
--- a/src/gsttl_plot.sh
+++ b/src/gsttl_plot.sh
@@ -61,6 +61,8 @@ plt_msg_origin=`echo "scale=4;1.0-($height1*11.0)" | bc`
plt_qry_origin=`echo "scale=4;1.0-($height1*13.0)" | bc`
last_ts=`grep -v "sync_times" ${base}.log | cut -d' ' -f3 | sort -n | tail -n1`
+first_ts=`grep -v "sync_times" /tmp/gsttl.log | cut -d' ' -f3 | sort -n | head -n1`
+
# debugging
cat <<EOF
@@ -95,7 +97,7 @@ set pointsize 2.0
unset xlabel
unset xtics
-set xrange [0:$last_ts]
+set xrange [$first_ts:$last_ts]
set xtics format "%g"
set xtics nomirror autofreq
set ylabel "Size (bytes) / Offset (samples)"