merged
authornipkow
Sat, 08 Jul 2017 15:51:34 +0200
changeset 66256 5be685bbd16c
parent 66254 6b5684ee07d9 (diff)
parent 66255 2d5350c15346 (current diff)
child 66257 3bc892346a6b
merged
--- a/src/Pure/Admin/build_status.scala	Sat Jul 08 15:51:29 2017 +0200
+++ b/src/Pure/Admin/build_status.scala	Sat Jul 08 15:51:34 2017 +0200
@@ -82,10 +82,12 @@
     def order: Long = - head.timing.elapsed.ms
 
     def finished_entries: List[Entry] = entries.filter(_.finished)
+    def finished_entries_size: Int =
+      finished_entries.map(entry => entry.pull_date.unix_epoch).toSet.size
 
-    def check_timing: Boolean = finished_entries.length >= 3
+    def check_timing: Boolean = finished_entries_size >= 3
     def check_heap: Boolean =
-      finished_entries.length >= 3 &&
+      finished_entries_size >= 3 &&
       finished_entries.forall(entry =>
         entry.maximum_heap > 0 ||
         entry.average_heap > 0 ||