diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2012-12-17 21:18:20 +0100 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2012-12-17 21:18:20 +0100 |
commit | 24e9799e47af28f0893a22940cd38a0a2742f462 (patch) | |
tree | 341db89e4e7c0345cbc50659c911de44ca2f0701 | |
parent | 29a34058a9a128532e19a4ee24b32d0528877ba1 (diff) |
-rwxr-xr-x | src/gsttl_plot.sh | 8 |
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 | |||
@@ -61,13 +61,15 @@ plt_msg_origin=`echo "scale=4;1.0-($height1*11.0)" | bc` | |||
61 | plt_qry_origin=`echo "scale=4;1.0-($height1*13.0)" | bc` | 61 | plt_qry_origin=`echo "scale=4;1.0-($height1*13.0)" | bc` |
62 | 62 | ||
63 | last_ts=`grep -v "sync_times" ${base}.log | cut -d' ' -f3 | sort -n | tail -n1` | 63 | last_ts=`grep -v "sync_times" ${base}.log | cut -d' ' -f3 | sort -n | tail -n1` |
64 | first_ts=`grep -v "sync_times" /tmp/gsttl.log | cut -d' ' -f3 | sort -n | head -n1` | 64 | #first_ts=`grep -v "sync_times" /tmp/gsttl.log | cut -d' ' -f3 | sort -n | head -n1` |
65 | 65 | first_ts=`grep "^pad_" ${base}.log | cut -d' ' -f3 | sort -n | head -n1` | |
66 | 66 | ||
67 | # debugging | 67 | # debugging |
68 | cat <<EOF | 68 | cat <<EOF |
69 | # page height : $plot_height1 , $plot_height2 : $plot_height | 69 | # page height : $plot_height1 , $plot_height2 : $plot_height |
70 | # graph height : $height1 | 70 | # graph height : $height1 |
71 | # ts range : $first_ts : $last_ts | ||
72 | |||
71 | EOF | 73 | EOF |
72 | 74 | ||
73 | # configure output | 75 | # configure output |
@@ -142,6 +144,8 @@ cat <<EOF | |||
142 | set y2label | 144 | set y2label |
143 | unset y2tics | 145 | unset y2tics |
144 | 146 | ||
147 | set xrange [0:$last_ts] | ||
148 | |||
145 | set size 0.5,$height1 | 149 | set size 0.5,$height1 |
146 | set origin 0.5,$plt_perf_origin | 150 | set origin 0.5,$plt_perf_origin |
147 | set xlabel "Time (sec.msec)" | 151 | set xlabel "Time (sec.msec)" |