Revision: 23510
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23510
Author:   jaguarandi
Date:     2009-09-27 15:47:04 +0200 (Sun, 27 Sep 2009)

Log Message:
-----------
Use user time as reference time instead of wall time

Modified Paths:
--------------
    branches/soc-2009-jaguarandi/test/html.py

Modified: branches/soc-2009-jaguarandi/test/html.py
===================================================================
--- branches/soc-2009-jaguarandi/test/html.py   2009-09-27 11:00:35 UTC (rev 
23509)
+++ branches/soc-2009-jaguarandi/test/html.py   2009-09-27 13:47:04 UTC (rev 
23510)
@@ -94,7 +94,8 @@
                def get_runtime(conf):
                        run = test.get(conf[0],conf[1],case)
                        if run != None and run["result"] != 
test.TestRun.RESULT_NONE:
-                               return run["time"]
+#                              return run["time"]
+                               return run["getrusage"]["utime"]
                        return None
                
 #              reference_time = min( map(get_runtime, valid_configs) )
@@ -117,7 +118,8 @@
 
                                # comparison result
                                
-                               ref = (reference_time/run["time"])
+#                              ref = (reference_time/run["time"])
+                               ref = (reference_time/run["getrusage"]["utime"])
                                cmp = "cmp_equal"
                                sign = ""
                                if ref < 1:


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to