also report the size of the tar file we're untarring.

This commit is contained in:
fsgqa
2002-09-18 08:15:56 +00:00
parent eb905b64cf
commit 6dafe2f15e
+5 -3
View File
@@ -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