[CalendarServer-changes] [1868] CalDAVTester/trunk/monitor.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 11 10:42:48 PDT 2007


Revision: 1868
          http://trac.macosforge.org/projects/calendarserver/changeset/1868
Author:   cdaboo at apple.com
Date:     2007-09-11 10:42:47 -0700 (Tue, 11 Sep 2007)

Log Message:
-----------
Tweak HTML a bit.

Modified Paths:
--------------
    CalDAVTester/trunk/monitor.py

Modified: CalDAVTester/trunk/monitor.py
===================================================================
--- CalDAVTester/trunk/monitor.py	2007-09-11 17:26:01 UTC (rev 1867)
+++ CalDAVTester/trunk/monitor.py	2007-09-11 17:42:47 UTC (rev 1868)
@@ -146,16 +146,17 @@
 
     @staticmethod
     def reportStart(html):
+        nowstr = str(datetime.datetime.now().replace(microsecond=0))
         if html:
             print """<html>
-<head><title>Server Status on %s</title></head>
+<head><title>Server Status</title></head>
 <body>
-
-""" % (str(datetime.datetime.now().replace(microsecond=0)))
+<h2>Server Status on %s</h2>
+""" % (nowstr,)
         else:
             print """Server Status on %s
 
-""" % (str(datetime.datetime.now().replace(microsecond=0)))
+""" % (nowstr,)
 
     @staticmethod
     def reportEnd(html):
@@ -217,7 +218,7 @@
             status = "UP"
         if html:
             print """
-<h2>Server: %s</h2>
+<h3>Server: %s</h3>
 <table>
 <tr><td>Uptime</td><td>approx. %d (hours) / %d (days)</td></tr>
 <tr><td>Downtime</td><td>approx. %d (minutes) / %d (hours)</td></tr>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070911/e1b6f57f/attachment.html


More information about the calendarserver-changes mailing list