diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-04-19 12:01:45 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-04-19 12:01:45 +0000 |
commit | f65d9ec046e945c52f15f68207d1a60c1beca301 (patch) | |
tree | 0c58b74c02c0ac3027491a21b4c526b81cb7a715 /index.php | |
parent | 4ba96725915172f33fd320ac017a822049428f64 (diff) | |
download | pkgsubmit-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.php | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |