sbm

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

commit 60657fff492f44a86c97a4d6a3089a2166056620
parent 1ae573e52083826660e474d33652f1d9b4d9b4a9
Author: sin <sin@2f30.org>
Date:   Tue Feb 23 15:02:36 +0000

Rename tmp to datafile for consistency between the two scripts

Diffstat:
sbm-plot | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sbm-plot b/sbm-plot @@ -9,12 +9,12 @@ command -v gnuplot >/dev/null || { exit 1 } -tmp=`mktemp` +datafile=`mktemp` while read line; do - echo "$line" >> "$tmp" + echo "$line" >> "$datafile" done < /dev/stdin -DATAFILE="$tmp" gnuplot << 'EOF' +DATAFILE="$datafile" gnuplot << 'EOF' set terminal png x040418 xffba00 set terminal png enhanced size 1024, 768 set multiplot layout 1, 2 @@ -31,4 +31,4 @@ plot datafile using ($3) with lines title "RX pps", \ datafile using ($4) with lines title "TX pps" EOF -rm -f "$tmp" +rm -f "$datafile"