sbm

simple bandwidth monitor
git clone git://git.2f30.org/sbm
Log | Files | Refs | LICENSE

commit dabd51ddfda8ee4248b0f49500a036a29e1d4856
parent e5da1b7b889e55630245fa44cd249202925a1fbe
Author: sin <sin@2f30.org>
Date:   Tue, 23 Feb 2016 13:37:35 +0000

Create two graphs next to each other, one for Mbps and one for pps

Diffstat:
Msbm-plot | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sbm-plot b/sbm-plot @@ -11,7 +11,9 @@ while read line; do done < /dev/stdin DATAFILE="$tmp" gnuplot << 'EOF' -set term png x040418 xffba00 +set terminal png x040418 xffba00 +set terminal png enhanced size 1024, 768 +set multiplot layout 1, 2 set autoscale set grid set xlabel "time" @@ -19,6 +21,10 @@ set ylabel "Mbps" datafile=system("echo $DATAFILE") plot datafile using ($1/1000/1000) with lines title "RX Mbps", \ datafile using ($2/1000/1000) with lines title "TX Mbps" +set xlabel "time" +set ylabel "pps" +plot datafile using ($3) with lines title "RX pps", \ + datafile using ($4) with lines title "TX pps" EOF rm -f "$tmp"