4 Jan 2012 18:25
Division by zero in innreport
John F. Morse <inn <at> xanadu-bbs.net>
2012-01-04 17:25:09 GMT
2012-01-04 17:25:09 GMT
INN 2.5.2 on Debian 6.0.3 (Squeeze)
Servers installed from both DEB-APT and compiled from source.
Older INN 2.4.3 on Debian 5.0.9 (Lenny) are not reporting this error.
Errors started on January 1. First change of the year.
Illegal division by zero at /usr/lib/news/bin/innreport line 1747.
Daily Usenet report for my.net from Jan 3 00:00:02 to Jan 4 00:00:01
1743 foreach $key (sort keys %$dates) {
1744 $x_min = $key if $x_min > $key;
1745 $x_max = $$dates{$key} if $x_max < $$dates{$key};
1746 my $delta = $dates->{$key} - $key;
1747 my $t = $out->{$key} / $delta;
1748 $y_max_out = $t if $y_max_out < $t;
1749 $t = $in->{$key} / $delta;
1750 $y_max_in = $t if $y_max_in < $t;
1751 }
--
--
John
RSS Feed