summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/index.php b/index.php
index e24dd4e..3a05998 100644
--- a/index.php
+++ b/index.php
@@ -175,8 +175,14 @@ foreach ($matches as $val) {
$pkgs[$key]['buildtime']['start'] = key2timestamp($val[6]);
$pkgs[$key]['buildtime']['end'] = round($val[12]);
$pkgs[$key]['buildtime']['diff'] = $pkgs[$key]['buildtime']['end'] - $pkgs[$key]['buildtime']['start'];
- $buildtime_total += $pkgs[$key]['buildtime']['diff'];
- $build_count += 1;
+
+ // keep obviously dubious values out of there
+ // 12 hours is be an acceptable threshold given current BS global perfs
+ // as of April 2011
+ if ($pkgs[$key]['buildtime']['diff'] < 43200) {
+ $buildtime_total += $pkgs[$key]['buildtime']['diff'];
+ $build_count += 1;
+ }
}
}
// sort by key in reverse order to have more recent pkgs first