src/Pure/Admin/isabelle_cronjob.scala
changeset 78901 6874791b24d9
parent 78898 c93efa4b2a50
child 78902 6dc989ae4327
--- a/src/Pure/Admin/isabelle_cronjob.scala	Sat Nov 04 17:29:49 2023 +0100
+++ b/src/Pure/Admin/isabelle_cronjob.scala	Sat Nov 04 17:19:22 2023 +0100
@@ -195,7 +195,7 @@
 
       val store = Build_Log.store(options)
       using(store.open_database()) { db =>
-        def pick_days(days: Int, gap: Int): Option[(String, Option[String])] = {
+        def pick_recent(days: Int, gap: Int): Option[(String, Option[String])] = {
           val items = recent_items(db, days, rev, afp_rev, sql).filter(filter)
           def runs = unknown_runs(items).filter(run => run.length >= gap)
 
@@ -210,9 +210,9 @@
           else runs.flatten.headOption.map(_.versions)
         }
 
-        pick_days(options.int("build_log_history") max history, 2) orElse
-        pick_days(200, 5) orElse
-        pick_days(2000, 1)
+        pick_recent(options.int("build_log_history") max history, 2) orElse
+        pick_recent(200, 5) orElse
+        pick_recent(2000, 1)
       }
     }