Revision: 41439
http://brlcad.svn.sourceforge.net/brlcad/?rev=41439&view=rev
Author: brlcad
Date: 2010-11-23 15:57:28 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
er, need elp before computing avg so reorder. sprinkle a few comments too.
Modified Paths:
--------------
brlcad/trunk/sh/conversion.sh
Modified: brlcad/trunk/sh/conversion.sh
===================================================================
--- brlcad/trunk/sh/conversion.sh 2010-11-23 15:48:00 UTC (rev 41438)
+++ brlcad/trunk/sh/conversion.sh 2010-11-23 15:57:28 UTC (rev 41439)
@@ -339,7 +339,7 @@
nmg_count=0
bot_count=0
$ECHO "%s" "-=-"
-begin=`elapsed`
+begin=`elapsed` # start elapsed runtime timer
while test $# -gt 0 ; do
file="$1"
if ! test -f "$file" ; then
@@ -367,6 +367,7 @@
$objects
EOF
+ # iterate over every geometry object in the current file
while read object ; do
obj="`basename \"$object\"`"
@@ -418,7 +419,7 @@
bot_count=`expr $bot_count + 1`
fi
- # print summary
+ # print result for this object
status=FAIL
if test "x$nmg" = "xpass" && test "x$bot" = "xpass" ; then
status=OK
@@ -435,9 +436,13 @@
rm -f "$work"
shift
done
-end=`elapsed`
+end=`elapsed` # stop elapsed runtime timer
$ECHO "%s" "-=-"
+# calculate summary statistics
+elp=`echo $begin $end | awk '{print $2-$1}'`
+nmg_fail=`echo $nmg_count $count | awk '{print $2-$1}'`
+bot_fail=`echo $bot_count $count | awk '{print $2-$1}'`
if test $count -eq 0 ; then
nmg_percent=0
bot_percent=0
@@ -449,10 +454,8 @@
rate=`echo $nmg_count $bot_count $count | awk '{print
($1+$2)/($3+$3)*100.0}'`
avg=`echo $elp $count | awk '{print $1/$2}'`
fi
-elp=`echo $begin $end | awk '{print $2-$1}'`
-nmg_fail=`echo $nmg_count $count | awk '{print $2-$1}'`
-bot_fail=`echo $bot_count $count | awk '{print $2-$1}'`
+# print summary
$ECHO
$ECHO "... Done."
$ECHO
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits