Commit 1cff08ce authored by Pzqqt's avatar Pzqqt Committed by John Wu

Fix possible error block counts

Add "-k" parameter to force the unit to 1024 bytes.
parent a868118f
......@@ -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) }'`
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment