summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-04-19 12:01:45 +0000
committerRomain d'Alverny <rda@mageia.org>2011-04-19 12:01:45 +0000
commitf65d9ec046e945c52f15f68207d1a60c1beca301 (patch)
tree0c58b74c02c0ac3027491a21b4c526b81cb7a715 /index.php
parent4ba96725915172f33fd320ac017a822049428f64 (diff)
downloadpkgsubmit-f65d9ec046e945c52f15f68207d1a60c1beca301.tar
pkgsubmit-f65d9ec046e945c52f15f68207d1a60c1beca301.tar.gz
pkgsubmit-f65d9ec046e945c52f15f68207d1a60c1beca301.tar.bz2
pkgsubmit-f65d9ec046e945c52f15f68207d1a60c1beca301.tar.xz
pkgsubmit-f65d9ec046e945c52f15f68207d1a60c1beca301.zip
filter out dubious buildtimes (fuzzy)
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