Use get_column for 'as' column (max_stoptime).

This commit is contained in:
Rob en Lizi Vermaas 2013-03-24 18:50:17 +01:00
parent fb36de0f48
commit 52a9f1a14e

View file

@ -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(