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:
parent
d9b355b48a
commit
1ad50ae465
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue