[CalendarServer-changes] [11791] CalendarServer/trunk/contrib/performance/loadtest/population.py
source_changes at macosforge.org
source_changes at macosforge.org
Sat Oct 5 12:03:02 PDT 2013
Revision: 11791
http://trac.calendarserver.org//changeset/11791
Author: cdaboo at apple.com
Date: 2013-10-05 12:03:02 -0700 (Sat, 05 Oct 2013)
Log Message:
-----------
Fix print out of qos() value.
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/population.py
Modified: CalendarServer/trunk/contrib/performance/loadtest/population.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/population.py 2013-10-04 23:23:03 UTC (rev 11790)
+++ CalendarServer/trunk/contrib/performance/loadtest/population.py 2013-10-05 19:03:02 UTC (rev 11791)
@@ -480,7 +480,7 @@
if result is not None:
differences.append(result)
- return mean(differences) if differences else "None"
+ return ("%-8.4f" % mean(differences)) if differences else "None"
def qos_value(self, method, value):
@@ -518,7 +518,7 @@
'Start time': self._startTime.strftime('%m/%d %H:%M:%S'),
'Run time': "%02d:%02d:%02d" % (runHours, runMinutes, runSeconds),
'CPU Time': "user %-5.2f sys %-5.2f total %02d:%02d:%02d" % (cpuUser, cpuSys, cpuHours, cpuMinutes, cpuSeconds,),
- 'QoS': "%-8.4f" % (self.qos(),),
+ 'QoS': self.qos(),
}
if self.countClientFailures() > 0:
items['Failed clients'] = self.countClientFailures()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20131005/95b65664/attachment.html>
More information about the calendarserver-changes
mailing list