1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +00:00

fixed a bug

This commit is contained in:
Dju 2010-09-07 02:26:36 +02:00 committed by Steve Schnepp
parent d9b355b48a
commit 1ad50ae465

View file

@ -59,9 +59,9 @@ TMP1=`mktemp`
if [ -f $TMP1 ]; then
$LOGTAIL -o $OFFSET_FILE $LOGFILE | grep 'GET \|PUT ' > $TMP1
echo -n "dl.value "
awk '/GET / {DL = DL + $NF} END {print DL}'
awk '/GET / {DL = DL + $NF} END {print DL}' $TMP1
echo -n "ul.value "
awk '/PUT / {UL = UDL + $NF} END {print UL}'
awk '/PUT / {UL = UDL + $NF} END {print UL}' $TMP1
rm $TMP1
else
echo "cant create temp file"