1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #1613: Change df command options for older versions

This commit is contained in:
Carlos Martín 2013-07-12 15:27:48 +02:00
parent c02a6c3eee
commit 91288d8bf6

View File

@ -55,8 +55,8 @@ if [ ! -d $BASE_PATH ]; then
fi
USED_MB=`du -sLm $BASE_PATH 2>/dev/null | cut -f1`
TOTAL_MB=`df -B1M --output=size $BASE_PATH 2>/dev/null | tail -1`
FREE_MB=`df -B1M --output=avail $BASE_PATH 2>/dev/null | tail -1`
TOTAL_MB=`df -B1M -P $BASE_PATH 2>/dev/null | tail -n 1 | awk '{print $2}'`
FREE_MB=`df -B1M -P $BASE_PATH 2>/dev/null | tail -n 1 | awk '{print $4}'`
MONITOR_DATA=$(cat <<EOF
USED_MB=$USED_MB