[CalendarServer-changes] [10921] CalendarServer/trunk/txdav/common/datastore/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 14 08:08:38 PDT 2013


Revision: 10921
          http://trac.calendarserver.org//changeset/10921
Author:   cdaboo at apple.com
Date:     2013-03-14 08:08:38 -0700 (Thu, 14 Mar 2013)
Log Message:
-----------
Fix statement time logging.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/common/datastore/sql.py

Modified: CalendarServer/trunk/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/trunk/txdav/common/datastore/sql.py	2013-03-14 14:03:20 UTC (rev 10920)
+++ CalendarServer/trunk/txdav/common/datastore/sql.py	2013-03-14 15:08:38 UTC (rev 10921)
@@ -353,7 +353,7 @@
             toFile.write("\n")
             toFile.write("SQL: %s\n" % (sql,))
             toFile.write("Rows: %s\n" % (rows,))
-            toFile.write("Time (ms): %.3f\n" % (t,))
+            toFile.write("Time (ms): %.3f\n" % (t * 1000.0,))
         toFile.write("***\n\n")
 
         if self.logFileName:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130314/394b6666/attachment.html>


More information about the calendarserver-changes mailing list