mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
also report the size of the tar file we're untarring.
This commit is contained in:
@@ -23,14 +23,16 @@ run_tar()
|
||||
{
|
||||
# %U=user %S=system %E=elapsed
|
||||
mkdir ./tar || exit 1
|
||||
cd tar
|
||||
/usr/bin/time -f '%U,%S,%E' tar xf $TARFILE || exit 1
|
||||
size=`ls -lh $TARFILE | awk '{print $5}'`
|
||||
time=`/usr/bin/time -f '%U,%S,%E' tar xf $TARFILE 2>&1`
|
||||
[ $? -eq 0 ] || exit 1
|
||||
echo "$size,$time"
|
||||
cd ..
|
||||
rm -fr ./tar || exit 1
|
||||
}
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
echo "user,system,elapsed"
|
||||
echo "size,user,system,elapsed"
|
||||
exit 0
|
||||
fi
|
||||
new_tar
|
||||
|
||||
Reference in New Issue
Block a user