[CalendarServer-changes] [4062] CalendarServer/trunk/twistedcaldav/admin/stats.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 22 12:27:34 PDT 2009
Revision: 4062
http://trac.macosforge.org/projects/calendarserver/changeset/4062
Author: cdaboo at apple.com
Date: 2009-04-22 12:27:33 -0700 (Wed, 22 Apr 2009)
Log Message:
-----------
Indentation fix.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/admin/stats.py
Modified: CalendarServer/trunk/twistedcaldav/admin/stats.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/admin/stats.py 2009-04-22 19:05:40 UTC (rev 4061)
+++ CalendarServer/trunk/twistedcaldav/admin/stats.py 2009-04-22 19:27:33 UTC (rev 4062)
@@ -116,8 +116,8 @@
data = sock.recv(8192)
if not data: break
response += data
- sock.close()
- return response
+ sock.close()
+ return response
def run(self):
if self.config['refresh'] is not None:
@@ -137,9 +137,9 @@
if interval % 60 is 0:
interval = interval / 60
units = "minute"
- print "Update interval: %d %s%s" % (interval, units, ("", "s")[interval > 1])
- else:
- print "Recent stats are not updated."
+ print "Update interval: %d %s%s" % (interval, units, ("", "s")[interval > 1])
+ else:
+ print "Recent stats are not updated."
else:
# attempt to gauge the recent hits for the first line of output
total_prev = (total - (plist['recentHits']['count'] / (since if since != 0 else 1) * self.refresh))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090422/b19d804c/attachment.html>
More information about the calendarserver-changes
mailing list