summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-10-11 09:40:18 +0000
committerdes <des@FreeBSD.org>2003-10-11 09:40:18 +0000
commit272ffb18d4a6f928474e9c2254cc51852e9dc1f7 (patch)
tree55247360677b2ad4f4989b8735552ef73f9ca0a6 /tools
parentd8d22397ed0a4f00b6bb46852af1ba3ff7003258 (diff)
downloadFreeBSD-src-272ffb18d4a6f928474e9c2254cc51852e9dc1f7.zip
FreeBSD-src-272ffb18d4a6f928474e9c2254cc51852e9dc1f7.tar.gz
Show stale results (8 hours old or more) in a paler color.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/tinderbox/www/index.cgi6
-rw-r--r--tools/tools/tinderbox/www/tb.css14
2 files changed, 18 insertions, 2 deletions
diff --git a/tools/tools/tinderbox/www/index.cgi b/tools/tools/tinderbox/www/index.cgi
index f4a6831..26393e9 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 " </tr>\n";
+ my $now = time();
+
foreach my $arch (sort(keys(%ARCHES))) {
foreach my $machine (sort(keys(%{$ARCHES{$arch}}))) {
my $html = " <tr>
@@ -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 .= "<span class=\"$class\">" .
strftime("%Y-%m-%d %H:%M&nbsp;UTC", gmtime($stat[9])) .
"</span><br />";
diff --git a/tools/tools/tinderbox/www/tb.css b/tools/tools/tinderbox/www/tb.css
index 1a27420..97914ed 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 {
OpenPOWER on IntegriCloud