<% $days[(localtime($dates[$d]->Unix))[6]]." ". (localtime($dates[$d]->Unix))[3]%>
% my $tix = new RT::Tickets($session{'CurrentUser'});
% $tix->LimitCreated(VALUE => $dates[$d]->ISO, OPERATOR => ">=");
% if ($dates[$d+1]) {
% $tix->LimitCreated(VALUE => $dates[$d+1]->ISO, OPERATOR => "<=");
% }
% if ($queue) {
% $tix->LimitQueue (VALUE => $queue);
% }
|
<% $tix->Count %>
|
% $tix->LimitStatus(VALUE => "resolved");
<% $tix->Count %>
|
% if ($tix->Count) {
% my @tix = @{$tix->ItemsArrayRef};
% my $total;
% $total += ($_->ResolvedObj->Unix - $_->CreatedObj->Unix) for @tix;
% my $average = int ($total / @tix);
<& DurationAsString, Duration => $average &>
% $data[$x++][$d] = $average;
% } else {
N/A
% }
|
%}