first try for timeline of last 24 hours in hydra

This commit is contained in:
Rob Vermaas 2009-12-01 19:17:38 +00:00
parent f99b1ee9b1
commit e322cb1304

View file

@ -65,11 +65,11 @@ sub queue :Local {
sub timeline :Local { sub timeline :Local {
my ($self, $c) = @_; my ($self, $c) = @_;
my $pit = time()-(24*60*60)-1; my $pit = time();
$pit = 1258469400 - (24*60*60)-1; $c->stash->{pit} = $pit;
$pit = $pit-(24*60*60)-1;
$c->stash->{template} = 'timeline.tt'; $c->stash->{template} = 'timeline.tt';
$c->stash->{pit} = $pit;
$c->stash->{builds} = [$c->model('DB::Builds')->search( $c->stash->{builds} = [$c->model('DB::Builds')->search(
{finished => 1, stoptime => { '>' => $pit } } {finished => 1, stoptime => { '>' => $pit } }
, { join => 'resultInfo' , { join => 'resultInfo'