diff --git a/tools/tools/tinderbox/www/index.cgi b/tools/tools/tinderbox/www/index.cgi
index a4065ce186a1..42a793ba2117 100644
--- a/tools/tools/tinderbox/www/index.cgi
+++ b/tools/tools/tinderbox/www/index.cgi
@@ -96,7 +96,8 @@ MAIN:{
foreach my $arch (sort(keys(%ARCHES))) {
foreach my $machine (sort(@{$ARCHES{$arch}})) {
- print "
+ my $have_logs = 0;
+ my $html = "
$arch |
$machine |
";
@@ -122,12 +123,15 @@ MAIN:{
"
";
}
if ($links eq "") {
- print(" n/a | \n");
+ $html .= " n/a | \n";
} else {
- print(" $links | \n");
+ $html .= " $links | \n";
+ $have_logs++;
}
}
- print "
\n";
+ $html .= " \n";
+ print $html
+ if $have_logs > 0;
}
}
my $date = strftime("%Y-%m-%d %H:%M GMT", gmtime());