[rt-users] Stats Package and Divide by Zero
George Travan
GeorgeT at ach.org.au
Wed Jun 25 00:39:37 EDT 2003
Hi, I have been using Simon Cozens statitics package under RT version
3.02.
my remaining error is:
error: Illegal division by zero at
/opt/rt3/share/html/stats/Resolution.html line 40.
context: ...
36: % if ($tix->Count) {
37: % my @tix = @{$tix->ItemsArrayRef};
38: % my $total;
39: % $total += ($_->ResolvedObj->Unix - $_->CreatedObj->Unix) for
@tix;
40: % my $average = int ($total / @tix);
41: <& DurationAsString, Duration => $average &>
42: % $data[$x++][$d] = $average;
43: % } else {
44: N/A
...
code stack: /opt/rt3/share/html/stats/Resolution.html:40
/opt/rt3/share/html/autohandler:148
anyone understand why tix=0?
Thanks for any help....the rest of stats seem to work OK now...
More information about the rt-users
mailing list