diff --git a/tools/tools/tinderbox/www/index.cgi b/tools/tools/tinderbox/www/index.cgi index f4a6831121c..26393e94d9b 100644 --- a/tools/tools/tinderbox/www/index.cgi +++ b/tools/tools/tinderbox/www/index.cgi @@ -33,6 +33,8 @@ use 5.006_001; use strict; use POSIX qw(strftime); +my $STALE = 8 * 3600; + my %BRANCHES; my %ARCHES; @@ -100,6 +102,8 @@ MAIN:{ } print " \n"; + my $now = time(); + foreach my $arch (sort(keys(%ARCHES))) { foreach my $machine (sort(keys(%{$ARCHES{$arch}}))) { my $html = " @@ -111,6 +115,8 @@ MAIN:{ if (-f "$DIR/$log.brief") { my @stat = stat("$DIR/$log.brief"); my $class = success("$DIR/$log.brief") ? "ok" : "fail"; + $class .= "-stale" + if ($now - $stat[9] > $STALE); $links .= "" . strftime("%Y-%m-%d %H:%M UTC", gmtime($stat[9])) . "
"; diff --git a/tools/tools/tinderbox/www/tb.css b/tools/tools/tinderbox/www/tb.css index 1a2742011d4..97914edf077 100644 --- a/tools/tools/tinderbox/www/tb.css +++ b/tools/tools/tinderbox/www/tb.css @@ -34,12 +34,22 @@ A:active { .ok { background-color: white; - color: green; + color: #070; +} + +.ok-stale { + background-color: white; + color: #797; } .fail { background-color: white; - color: red; + color: #700; +} + +.fail-stale { + background-color: white; + color: #977; } TD, TH {