From dc60b8f56027a806877ff692b73932d347f29745 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 7 Nov 2015 17:35:17 +0000 Subject: Add a link on failed architectures --- autobuild/results.php | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'autobuild') diff --git a/autobuild/results.php b/autobuild/results.php index 053d4b2..2fcf432 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -166,34 +166,22 @@ function toggle(titleid, contentid){ = 5) - return false; - # Next older 5 builds - $num_bad_older = 0; - for ($i = 5; $i < 10; $i++) { - if ($history[$i] === 'build_failure') - $num_bad_older++; - } - if ($num_bad_older < 1 || $num_bad_older >= 5) - return false; - - $num_bad = $num_bad + $num_bad_older; - if ($num_bad < 2 || $num_bad > 7) - return false; - - return true; + return $num_change >= 4; } function get_build_history($package) { -- cgit v1.2.1