web/application.py
changeset 5736 375819ec7d43
parent 5722 61d6a4caa963
parent 5721 3a9cd70bcfdc
child 5868 c4380d8cfc25
--- a/web/application.py	Fri Jun 11 08:39:21 2010 +0200
+++ b/web/application.py	Fri Jun 11 14:59:08 2010 +0200
@@ -58,12 +58,11 @@
         assert self.cleanup_anon_session_time > 0
         self.authmanager = vreg['components'].select('authmanager', vreg=vreg)
         if vreg.config.anonymous_user() is not None:
-            self.clean_sessions_interval = min(
-                5 * 60,
-                self.cleanup_session_time / 2.,
-                self.cleanup_anon_session_time / 2.)
+            self.clean_sessions_interval = max(
+                5 * 60, min(self.cleanup_session_time / 2.,
+                            self.cleanup_anon_session_time / 2.))
         else:
-            self.clean_sessions_interval = min(
+            self.clean_sessions_interval = max(
                 5 * 60,
                 self.cleanup_session_time / 2.)