[open-ils-commits] r795 - constrictor/trunk/constrictor (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Feb 25 00:00:24 EST 2010
Author: erickson
Date: 2010-02-25 00:00:21 -0500 (Thu, 25 Feb 2010)
New Revision: 795
Modified:
constrictor/trunk/constrictor/data.py
Log:
log real average task time
Modified: constrictor/trunk/constrictor/data.py
===================================================================
--- constrictor/trunk/constrictor/data.py 2010-02-24 02:41:22 UTC (rev 794)
+++ constrictor/trunk/constrictor/data.py 2010-02-25 05:00:21 UTC (rev 795)
@@ -90,8 +90,11 @@
)
).close()
+ task_times = 0
+
# insert all of the task data
for task in self.runtime_data:
+ task_times += task['duration']
log.log_debug("Storing " + task['name'])
self.engine.execute(
self.task_table.insert().values(
@@ -106,8 +109,8 @@
# log some basic stats
task_set_time = end_time - self.task_set_start_time
- log.log_info(
- "Total time %0.3f seconds, %d total tasks, average task duration %0.3f seconds" % (
- task_set_time, len(self.runtime_data), task_set_time / len(self.runtime_data)))
+ log.log_info("Total Tasks -> %d" % len(self.runtime_data))
+ log.log_info("Total time -> %0.3f seconds" % task_set_time)
+ log.log_info("Average task time -> %0.3f seconds" % (task_times / len(self.runtime_data)))
+ log.log_info("Time / Total Tasks -> %0.3f seconds/task" % (task_set_time / len(self.runtime_data)))
-
More information about the open-ils-commits
mailing list