sbm

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

commit a8586c2025275a819f556cf3895b4f880f4ccbaf
parent 60657fff492f44a86c97a4d6a3089a2166056620
Author: sin <sin@2f30.org>
Date:   Tue Feb 23 15:06:23 +0000

Default to 1 second for sbm-plot-real

Diffstat:
sbm-plot-real | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sbm-plot-real b/sbm-plot-real @@ -9,7 +9,7 @@ command -v gnuplot >/dev/null || { datafile=`mktemp` plotfile=`mktemp` trap "rm -f $datafile $plotfile" EXIT -sbm -c 1 -d 500 -t > "$datafile" +sbm -c 1 -t > "$datafile" ( cat << 'EOF' set multiplot layout 1, 2 @@ -24,12 +24,12 @@ set xlabel "time" set ylabel "pps" plot datafile using ($3) with lines title "RX pps", \ datafile using ($4) with lines title "TX pps" -pause 0.50 +pause 1 reread EOF ) > "$plotfile" DATAFILE="$datafile" gnuplot "$plotfile" & while :; do - sbm -c 1 -d 500 -t >> "$datafile" + sbm -c 1 -t >> "$datafile" done