8 |
use CGI::Carp qw(fatalsToBrowser); |
use CGI::Carp qw(fatalsToBrowser); |
9 |
use POSIX qw(strftime); |
use POSIX qw(strftime); |
10 |
|
|
11 |
my $debug = 0; |
my $debug = 1; |
12 |
|
|
13 |
my $width = 600; # width of bar |
my $width = 600; # width of bar |
14 |
my $height = 19; # height of bar |
my $height = 19; # height of bar |
17 |
# status colors |
# status colors |
18 |
my %cols = ( |
my %cols = ( |
19 |
'In Progress' => '0,255,0', |
'In Progress' => '0,255,0', |
20 |
'In Progress/Failure' => '255,64,255', |
'In Progress/Failures' => '192,64,192', |
21 |
'In Progress/Errors' => '255,64,0', |
'In Progress/Errors' => '255,128,128', |
22 |
'Queuing' => '255,255,0', |
'Queuing' => '255,255,0', |
23 |
'Aborted' => '255,0,0', |
'Aborted' => '255,0,0', |
24 |
'Failed' => '255,0,0', |
'Failed' => '255,0,0', |
220 |
from gantt |
from gantt |
221 |
where (start < '$from' and finish > '$from') or |
where (start < '$from' and finish > '$from') or |
222 |
(start > '$from' and start < '$to') |
(start > '$from' and start < '$to') |
223 |
order by device,specification |
order by device,specification,start |
224 |
"; |
" |
225 |
|
|
226 |
my $sth = $dbh->prepare($sql) || die "sql: $sql ".$dbh->errstr; |
my $sth = $dbh->prepare($sql) || die "sql: $sql ".$dbh->errstr; |
227 |
|
|
289 |
$alt .= $row->{type}." <b>".$row->{status}."</b><br>". |
$alt .= $row->{type}." <b>".$row->{status}."</b><br>". |
290 |
$row->{user_group_host}." <i>".$row->{sessionid}."</i><br>". |
$row->{user_group_host}." <i>".$row->{sessionid}."</i><br>". |
291 |
$row->{device}." on ".$row->{host}; |
$row->{device}." on ".$row->{host}; |
292 |
|
$alt .= "-- ".$row->{specification}; |
293 |
print bar($len,$row->{status},$alt); |
print bar($len,$row->{status},$alt); |
294 |
|
|
295 |
$curr_t += $len; |
$curr_t += $len; |