[CalendarServer-changes] [15639] CalendarServer/trunk/contrib/tools/protocolanalysis.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 26 11:54:53 PDT 2016
Revision: 15639
http://trac.calendarserver.org//changeset/15639
Author: cdaboo at apple.com
Date: 2016-05-26 11:54:53 -0700 (Thu, 26 May 2016)
Log Message:
-----------
Fix incorrect usage of "freebusy" extended log item.
Modified Paths:
--------------
CalendarServer/trunk/contrib/tools/protocolanalysis.py
Modified: CalendarServer/trunk/contrib/tools/protocolanalysis.py
===================================================================
--- CalendarServer/trunk/contrib/tools/protocolanalysis.py 2016-05-25 20:09:28 UTC (rev 15638)
+++ CalendarServer/trunk/contrib/tools/protocolanalysis.py 2016-05-26 18:54:53 UTC (rev 15639)
@@ -377,7 +377,7 @@
# Scheduling analysis
if adjustedMethod == METHOD_POST_FREEBUSY:
- recipients = int(self.currentLine.extended.get("recipients", 0)) + int(self.currentLine.extended.get("freebusy", 0))
+ recipients = int(self.currentLine.extended.get("recipients", 0))
self.hourlyByRecipientCount["Freebusy One Offs" if recipients == 1 else "Freebusy Average"][timeBucketIndex][0] += 1
self.hourlyByRecipientCount["Freebusy One Offs" if recipients == 1 else "Freebusy Average"][timeBucketIndex][1] += recipients
self.hourlyByRecipientCount["Freebusy Max."][timeBucketIndex][0] = max(self.hourlyByRecipientCount["Freebusy Max."][timeBucketIndex][0], recipients)
@@ -392,7 +392,7 @@
self.hourlyByRecipientCount["iTIP Average"][timeBucketIndex][1] += recipients
self.hourlyByRecipientCount["iTIP Max."][timeBucketIndex][0] = max(self.hourlyByRecipientCount["iTIP Max."][timeBucketIndex][0], recipients)
elif adjustedMethod == METHOD_POST_ISCHEDULE_FREEBUSY:
- recipients = int(self.currentLine.extended.get("recipients", 0)) + int(self.currentLine.extended.get("freebusy", 0))
+ recipients = int(self.currentLine.extended.get("recipients", 0))
self.hourlyByRecipientCount["iFreebusy One Offs" if recipients == 1 else "iFreebusy Average"][timeBucketIndex][0] += 1
self.hourlyByRecipientCount["iFreebusy One Offs" if recipients == 1 else "iFreebusy Average"][timeBucketIndex][1] += recipients
self.hourlyByRecipientCount["iFreebusy Max."][timeBucketIndex][0] = max(self.hourlyByRecipientCount["iFreebusy Max."][timeBucketIndex][0], recipients)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160526/b7853a93/attachment.html>
More information about the calendarserver-changes
mailing list