summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/gsttl_plot.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gsttl_plot.sh b/src/gsttl_plot.sh
index 6589c28..7529a07 100755
--- a/src/gsttl_plot.sh
+++ b/src/gsttl_plot.sh
@@ -63,4 +63,4 @@ 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`
-
+#first_ts=`grep -v "sync_times" /tmp/gsttl.log | cut -d' ' -f3 | sort -n | head -n1`
+first_ts=`grep "^pad_" ${base}.log | cut -d' ' -f3 | sort -n | head -n1`
@@ -70,2 +70,4 @@ cat <<EOF
# graph height : $height1
+# ts range : $first_ts : $last_ts
+
EOF
@@ -144,2 +146,4 @@ unset y2tics
+set xrange [0:$last_ts]
+
set size 0.5,$height1