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

bug #955: Fix file size calculation

This commit is contained in:
Ruben S. Montero 2011-11-03 23:40:24 +01:00
parent 3986ef27f7
commit fdaaa3644f

View File

@ -55,7 +55,7 @@ echo "$IMAGE_REPOSITORY_PATH/`echo $CANONICAL_MD5 | cut -d ' ' -f1`"
}
function fs_du {
SIZE=`$(stat -c %s $1)`
SIZE=`stat -c %s $1`
if [ $? -ne 0 ]; then
SIZE=0