Skip to content

Commit

Permalink
Fix possible error block counts
Browse files Browse the repository at this point in the history
Add "-k" parameter to force the unit to 1024 bytes.
  • Loading branch information
Pzqqt authored and topjohnwu committed Dec 5, 2018
1 parent a868118 commit 1cff08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/util_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ request_zip_size_check() {
check_filesystem() {
curSizeM=`wc -c < $1`
curSizeM=$((curSizeM / 1048576))
local DF=`df -P $2 | grep $2`
local DF=`df -Pk $2 | grep $2`
curUsedM=`echo $DF | awk '{ print int($3 / 1024) }'`
curFreeM=`echo $DF | awk '{ print int($4 / 1024) }'`
}
Expand Down

0 comments on commit 1cff08c

Please sign in to comment.