forked from lix-project/hydra
Use get_column for 'as' column (max_stoptime).
This commit is contained in:
parent
fb36de0f48
commit
52a9f1a14e
|
@ -79,7 +79,7 @@ sub machines :Local Args(0) {
|
|||
{ stoptime => { '!=', undef } },
|
||||
{ select => [ 'machine', { max => 'stoptime', -as => 'max_stoptime' }], group_by => "machine" });
|
||||
while (my $idle = $idles->next) {
|
||||
${$machines}{$idle->machine}{'idle'} = $idle->max_stoptime;
|
||||
${$machines}{$idle->machine}{'idle'} = $idle->get_column('max_stoptime');
|
||||
}
|
||||
$c->stash->{machines} = $machines;
|
||||
$c->stash->{steps} = [ $c->model('DB::BuildSteps')->search(
|
||||
|
|
Loading…
Reference in a new issue