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

bug #1042: fix units for du size

This commit is contained in:
Javi Fontan 2012-02-13 12:57:57 +01:00
parent 96c0c823e9
commit 3f901ac6f8

View File

@ -65,7 +65,7 @@ echo "$IMAGE_REPOSITORY_PATH/`echo $CANONICAL_MD5 | cut -d ' ' -f1`"
function fs_du {
if [ -d "$1" ]; then
SIZE=`du -s "$1" | cut -f1`
SIZE=`du -sb "$1" | cut -f1`
error=$?
else
SIZE=`stat -c %s "$1"`