index: Limit detail of failures shown to improve performance
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Nov 2013 22:52:56 +0000 (23:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Nov 2013 22:52:56 +0000 (23:52 +0100)
index.cgi

index 7c564fa..5f79908 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -219,7 +219,7 @@ for my $rep (sort repcmp @reps) {
     end 'td';
     end 'tr';
     print "\n";
-    if ($npass < $ntest) {
+    if ($npass < $ntest && $ntest - $npass < 100) {
         my $report = load_report $$rep{slot}, $$rep{date};
         my @fail = grep $$_{status} ne '0', @{$$report{recs}};
         my $nfail = @fail;