Reuse DEADAGE rather than defining our own constant.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 2 Aug 2014 19:43:06 +0000 (21:43 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 2 Aug 2014 19:43:06 +0000 (21:43 +0200)
TODO [new file with mode: 0644]
buildfarm/web/__init__.py

diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..1480b02
--- /dev/null
+++ b/TODO
@@ -0,0 +1 @@
+- age is misnamed
index 7cd1a7ed968dba90ea4b9ec8e80b0f2a10f5dd99..3b3c38d47948eaf727042599ba9ae966a2308d7e 100755 (executable)
@@ -58,11 +58,6 @@ webdir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "we
 GITWEB_BASE = "https://gitweb.samba.org"
 HISTORY_HORIZON = 1000
 
-# Maximum age of builds to consider when displaying summary page statistics.
-# Note that trees only get rebuilt when they change, so this value is
-# intentionally set to a high value to cope with trees that don't change often.
-SUMMARY_MAX_BUILD_AGE = (180 * 24 * 60 * 60)
-
 # this is automatically filled in
 deadhosts = []
 
@@ -732,7 +727,7 @@ class ViewSummaryPage(BuildFarmPage):
         # output when we want
         broken_table = ""
 
-        builds = self.buildfarm.get_summary_builds(min_age=time.time() - SUMMARY_MAX_BUILD_AGE)
+        builds = self.buildfarm.get_summary_builds(min_age=time.time() - BuildFarm.DEADAGE)
 
         for tree, status in builds:
             host_count[tree]+=1