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