[CalendarServer-changes] [7705] CalendarServer/trunk/contrib/performance/loadtest/profiles.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 5 09:15:16 PDT 2011


Revision: 7705
          http://trac.macosforge.org/projects/calendarserver/changeset/7705
Author:   exarkun at twistedmatrix.com
Date:     2011-07-05 09:15:15 -0700 (Tue, 05 Jul 2011)
Log Message:
-----------
Allow a user index of 0, since the sim indexes user records from 0

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/loadtest/profiles.py

Modified: CalendarServer/trunk/contrib/performance/loadtest/profiles.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/profiles.py	2011-07-01 18:23:54 UTC (rev 7704)
+++ CalendarServer/trunk/contrib/performance/loadtest/profiles.py	2011-07-05 16:15:15 UTC (rev 7705)
@@ -153,7 +153,7 @@
 
         for i in range(10):
             invitee = max(
-                1, self._number + self._inviteeDistanceDistribution.sample())
+                0, self._number + self._inviteeDistanceDistribution.sample())
             try:
                 record = self._sim.getUserRecord(invitee)
             except IndexError:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110705/3b581774/attachment.html>


More information about the calendarserver-changes mailing list