From 449a99817174f7b3ce6c22060050a394aa3f5363 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 28 Jun 2004 04:15:51 +0000 Subject: [PATCH] =?utf8?q?Se=20mejora=20la=20salida=20para=20que=20sea=20m?= =?utf8?q?=C3=A1s=20simple=20el=20tiempo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- calgary_tests/test_calgary.sh | 2 ++ calgary_tests/test_calgary_zip.sh | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/calgary_tests/test_calgary.sh b/calgary_tests/test_calgary.sh index bf0d083..fea5249 100755 --- a/calgary_tests/test_calgary.sh +++ b/calgary_tests/test_calgary.sh @@ -1,5 +1,7 @@ #!/bin/bash +TIMEFORMAT=%R + jacu=../src/jacu if [ ! -x $jacu ]; then diff --git a/calgary_tests/test_calgary_zip.sh b/calgary_tests/test_calgary_zip.sh index c03b8a4..df13f29 100755 --- a/calgary_tests/test_calgary_zip.sh +++ b/calgary_tests/test_calgary_zip.sh @@ -1,5 +1,7 @@ #!/bin/bash +TIMEFORMAT=%R + if [ -z "$1" ]; then echo "Falta parĂ¡metro: ./test_calgary_zip.sh [gzip|bzip2]" exit 1 @@ -16,8 +18,9 @@ fi for file in bib book1 book2 geo news obj1 obj2 paper1 paper2 paper3 paper4 \ paper5 paper6 pic progc progl progp trans; do echo "====================================" + echo $file time $1 -c $file > $file.$1 2> /dev/null - echo "print '$file: ', `stat -c "%s" $file.$1`*8.0/`stat -c "%s" $file`, ' bpb'" | python + echo "print(\"%.04f\" % (`stat -c "%s" $file.$1`*8.0/`stat -c "%s" $file`))" | python done echo "====================================" -- 2.43.0