statistics.sh: remove unused function

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tim Niemeyer 2013-11-14 20:24:34 +01:00
parent 325690c0cd
commit dc66cf862a
1 changed files with 0 additions and 15 deletions

View File

@ -3,18 +3,6 @@
# config
STATSDIR="/tmp/statistics"
# functions
paste_variables() {
local VAR1="$1"
local VAR2="$2"
local TMP1=$(mktemp) || return 1
local TMP2=$(mktemp) || return 1
echo "$VAR1" > "$TMP1"
echo "$VAR2" > "$TMP2"
paste -d" " "$TMP1" "$TMP2"
rm "$TMP1" "$TMP2"
}
get_trafficdata() {
cat /proc/net/dev | tail -n +3 | tr ":" " " | sed -e 's/^[ ]\+//g' | tr -s " " | cut -d" " -f 1,2,3,10,11 || return 1
}
@ -60,6 +48,3 @@ chmod -R 700 "$STATSDIR"
# update values
update_traffic