[Zope-Checkins] CVS: Zope/lib/python/App - ApplicationManager.py:1.90.8.1

Chris McDonough chrism at zopemafia.com
Mon Dec 22 21:32:58 EST 2003


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv31665/lib/python/App

Modified Files:
      Tag: chrism-scheduling-branch
	ApplicationManager.py 
Log Message:
This branch includes low-level scheduling services for Zope.

See http://www.plope.com/Members/chrism/scheduling_service for more information.


=== Zope/lib/python/App/ApplicationManager.py 1.90 => 1.90.8.1 ===
--- Zope/lib/python/App/ApplicationManager.py:1.90	Tue Nov 18 08:16:58 2003
+++ Zope/lib/python/App/ApplicationManager.py	Mon Dec 22 21:32:27 2003
@@ -515,6 +515,18 @@
                 l.append((str(type), 'Port: %s' % port))
         return l
 
+    def loadAverage1(self):
+        from Lifetime import load_avg
+        return load_avg(60)
+
+    def loadAverage5(self):
+        from Lifetime import load_avg
+        return load_avg(300)
+
+    def loadAverage15(self):
+        from Lifetime import load_avg
+        return load_avg(900)
+
     def objectIds(self, spec=None):
         """ this is a patch for pre-2.4 Zope installations. Such
             installations don't have an entry for the WebDAV LockManager




More information about the Zope-Checkins mailing list